forked from all-in-aigc/sorafm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
73 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Sora.FM | ||
|
||
Sora AI 视频生成器 | ||
|
||
> 这个项目是一个 AI 视频生成模板,并不能真的根据你的提示词生成对应的视频。Sora API 还未发布,网站上展示的视频都是由 OpenAI 官方生成的。 | ||
## 线上演示 | ||
|
||
[https://sora.fm](https://sora.fm) | ||
|
||
![preview](./preview.png) | ||
|
||
## 使用 Vercel 一键部署 | ||
|
||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnext.js%2Ftree%2Fcanary%2Fexamples%2Fhello-world&env=POSTGRES_URL,WEB_BASE_URI&envDescription=POSTGRES_URL%20needed%20for%20the%20application&project-name=my-sora-project&repository-name=my-sora-project&redirect-url=https%3A%2F%2Fsora.fm&demo-title=Sora.FM&demo-description=Sora%20AI%20Video%20Generator&demo-url=https%3A%2F%2Fsora.fm&demo-image=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm%2Fraw%2Fmain%2Fpreview.png) | ||
|
||
## 快速开始 | ||
|
||
1. 克隆项目 | ||
|
||
```shell | ||
git clone https://github.com/all-in-aigc/sorafm | ||
``` | ||
|
||
2. 安装依赖 | ||
|
||
```shell | ||
cd sorafm | ||
pnpm install | ||
``` | ||
|
||
3. 初始化数据库 | ||
|
||
使用本地的 [local postgres](https://wiki.postgresql.org/wiki/Homebrew) 或者托管的 [vercel-postgres](https://vercel.com/docs/storage/vercel-postgres) 或者 [supabase](https://supabase.com/) | ||
|
||
使用 `data/install.sql` 文件里的建表语句创建数据表。 | ||
|
||
4. 设置环境变量 | ||
|
||
在项目根目录创建 `.env.local` 文件,写入如下配置: | ||
|
||
``` | ||
POSTGRES_URL="postgres://USER:PASSWORD@HOST/DB" | ||
WEB_BASE_URI="http://localhost:3000" | ||
``` | ||
|
||
5. 本地开发 | ||
|
||
```shell | ||
pnpm dev --port 3000 | ||
``` | ||
|
||
打开 `http://localhost:3000` 预览 | ||
|
||
## 致谢以下项目 | ||
|
||
- [aiwallpaper](https://aiwallpaper.shop) 提供代码参考 | ||
- [nextjs](https://nextjs.org/docs) 全栈开发框架 | ||
- [node-postgres](https://node-postgres.com/) 数据处理库 | ||
- [tailwindcss](https://tailwindcss.com/) 页面构建 | ||
|
||
## 其他 | ||
|
||
你可以在 Twitter 上关注我: https://twitter.com/idoubicc | ||
|
||
或者关注我的微信公众号 👇 | ||
|
||
![艾逗笔](https://zknown-1251007641.cos.ap-guangzhou.myqcloud.com/images/20240130090120.png) | ||
|
||
> 如果你想学习全栈开发,实现类似的产品,你可以参加我的 [全栈开发课程](https://mp.weixin.qq.com/s/4duIpeZkmqlKPa4jrcUdIA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.