开源推荐
morning
GitHub 热门项目:电视
2026-06-20
1 阅读
GitHub Trending
GitHub 项目:电视
仓库地址:https://github.com/algora-io/tv
星级:1248 | 作者:algora-io
项目描述:为开发者开源Twitch
===================================================
自述文件内容:
## ✨ 新功能:通过直播广告牌赚钱! ✨
Algora Live Billboards 允许视频内广告,帮助开发者在直播时赚钱,并为开发工具公司提供了接触新受众的新颖渠道。
https://github.com/user-attachments/assets/6f706a4b-210f-4ec8-a817-2a72cea0954a
## 开始使用
要启动并运行本地副本,请按照以下步骤操作。
### 先决条件
- Elixir 和 Erlang/OTP
- 我们建议使用 [asdf](https://github.com/asdf-vm/asdf) 安装 [Elixir](https://github.com/asdf-vm/asdf-elixir) 和 [Erlang/OTP](https://github.com/asdf-vm/asdf-erlang)。
- 请记住,每个 Elixir 版本都支持[特定的 Erlang/OTP 版本](https://hexdocs.pm/elixir/compatibility-and-deprecations.html# Between-elixir-and-erlang-otp)。
- 确保您至少安装了 **Elixir 1.17.3** 和 **Erlang 27.1** 才能运行 Algora TV。
- PostgreSQL
-FFmpeg
- ImageMagick
- OBS Studio(推荐用于测试直播功能)
### 设置项目
1. 克隆存储库并转到项目文件夹
````嘘
git 克隆 https://github.com/algora-io/tv.git;光盘电视
````
2. 获取依赖
````嘘
混合 deps.get
````
**注意:** 如果您使用的是带有基于 ARM 芯片的 Apple 机器,您需要安装 Rust 编译器并运行 `mixcompile.rambo`
3. 初始化你的`.env`文件
````嘘
cp .env.example .env
````
4. 创建将管理数据库的数据库用户
````嘘
sudo -u postgres psql
````
``sql
使用密码“password”创建用户算法;
使用 CREATEDB 更改用户算法;
\q
````
根据需要使用您使用的用户名和密码更新“.env”文件。
5. 设置数据库并为其添加种子
````嘘
env $(cat .env | xargs -L 1) mix ecto.setup
````
6. 启动您的开发服务器
````嘘
env $(cat .env | xargs -L 1) iex -S mix phx.