Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
idoubi committed Feb 24, 2024
1 parent aafff58 commit d934e46
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 30 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Sora AI Video Generator

> This project is a template for AI Video generating, it's not really work with your prompt until Sora API is available. All the videos show on Sora.FM are generated by OpenAI.
[中文说明](./README_CN.md)

## Live Demo

[https://sora.fm](https://sora.fm)
Expand Down
71 changes: 71 additions & 0 deletions README_CN.md
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)
23 changes: 0 additions & 23 deletions app/(default)/_components/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ export default function () {
className="font-inter font-light text-gray-500"
>
AI Cover
</a>{" "}
<a
href="https://readknown.cn"
target="_blank"
className="font-inter font-light text-gray-500"
>
ReadKnown
</a>
</div>
<div className="mb-5 mr-8 flex max-w-[200px] grow basis-[100px] flex-col space-y-5 lg:mx-10">
Expand All @@ -97,22 +90,6 @@ export default function () {
</a>
</div>
</div>
<div className="mt-10 flex flex-col lg:mt-0">
<div className="mb-4 flex flex-col items-center">
<p className="font-inter font-medium text-black"></p>
<p className="font-inter ml-4 text-black">
<img
src={
"https://zknown-1251007641.cos.ap-guangzhou.myqcloud.com/images/20240221231807.png"
}
alt="qrcode"
width={"250"}
height={"400"}
className="rounded-md"
/>
</p>
</div>
</div>
</div>
<div className="mx-auto my-12 w-full border border-gray-800 lg:my-20"></div>
<div>
Expand Down
7 changes: 0 additions & 7 deletions app/(default)/_components/social/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ export default function () {
>
<SiBuymeacoffee className="text-lg" />
</a>
<a
href="https://mp.weixin.qq.com/s/4duIpeZkmqlKPa4jrcUdIA"
target="_blank"
className="mx-3 flex max-w-[24px] flex-col items-center justify-center"
>
<BsBook className="text-lg" />
</a>
</div>
);
}
Binary file modified preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d934e46

Please sign in to comment.