Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/all-in-aigc/sorafm

Sora AI Video Generator by Sora.FM
https://github.com/all-in-aigc/sorafm

ai-video-generator ai-video-showcase sora

Last synced: 2 days ago
JSON representation

Sora AI Video Generator by Sora.FM

Awesome Lists containing this project

README

        

# Sora.FM

Sora AI Video Generator

> Sora text-to-video API is not available. All the videos display on Sora.FM are generated by OpenAI's red team.

[中文说明](./README_CN.md)

## Live Demo

[https://sorafm.trys.ai](https://sorafm.trys.ai)

![preview](./preview.png)

## Deploy with Vercel

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm&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%2Fsorafm.trys.ai&demo-title=Sora.FM&demo-description=Sora%20AI%20Video%20generator&demo-url=https%3A%2F%2Fsorafm.trys.ai&demo-image=https%3A%2F%2Fgithub.com%2Fall-in-aigc%2Fsorafm%2Fraw%2Fmain%2Fpreview.png)

## Deploy with docker

- build image

```shell
sudo docker build -f deploy/Dockerfile -t sorafm:latest .
```

- run server

```shell
sudo docker run -itd -p 127.0.0.1:8014:8080 --restart=always sorafm:latest
```

- nginx conf

```txt
server {
listen 80;

location / {
proxy_pass http://127.0.0.1:8014/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

error_log /var/log/nginx/sorafm.error;
}
```

## Local development

1. clone project

```shell
git clone https://github.com/all-in-aigc/sorafm
```

2. install dependencies

```shell
cd sorafm
pnpm install
```

3. init database

create your database use [local postgres](https://wiki.postgresql.org/wiki/Homebrew) or [vercel-postgres](https://vercel.com/docs/storage/vercel-postgres) or [supabase](https://supabase.com/)

create tables from sql at `data/install.sql`

4. set environmental values

put `.env.local` under root dir with values list below

```
POSTGRES_URL="postgres://USER:PASSWORD@HOST/DB"

WEB_BASE_URI="http://localhost:3000"
```

5. local development

```shell
pnpm dev --port 3000
```

open `http://localhost:3000` for preview

## Credit to

- [aiwallpaper](https://aiwallpaper.shop) for code reference
- [nextjs](https://nextjs.org/docs) for full-stack development
- [node-postgres](https://node-postgres.com/) for data processing
- [tailwindcss](https://tailwindcss.com/) for page building

## Other Things

you can contact me at Twitter: https://twitter.com/idoubicc

if this project is helpful to you, buy be a coffee.

Buy Me A Coffee

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=all-in-aigc/sorafm&type=Date)](https://star-history.com/#all-in-aigc/sorafm&Date)