feat: initialize aivideo project

This commit is contained in:
2026-04-17 18:33:05 +08:00
commit 14b18d67fe
162 changed files with 26251 additions and 0 deletions

65
README.md Normal file
View File

@@ -0,0 +1,65 @@
# AIVideo
基于 `docs/AI视频平台开发文档.md` 实现的单仓 AI 视频平台原型,包含:
- `backend`FastAPI + SQLAlchemy + Celery 风格任务链路
- `frontend-web`用户前台Next.js
- `frontend-admin`管理后台Next.js
- `sql`:初始化库表与基础种子数据
- `deploy`:部署相关文件占位
## 目录结构
```text
AIVideo/
backend/
frontend-web/
frontend-admin/
docs/
deploy/
sql/
```
## 快速开始
### 1. 启动基础依赖
```bash
docker compose up -d mysql redis minio
```
### 2. 启动后端
```bash
cd backend
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
```
### 3. 启动前台
```bash
npm install
npm --workspace frontend-web run dev
```
### 4. 启动后台
```bash
npm --workspace frontend-admin run dev
```
## 默认账号
- 用户端:自行注册
- 管理后台:`admin / Admin@123456`
## 说明
- 本地默认支持 mock OpenAI 与 mock Seedance 任务链路。
- 若配置真实供应商账号与可访问的 `baseUrl`,后端会按对应协议发起真实请求。
- 任务结果默认落到 `backend/storage_data`,并通过 `/storage` 暴露访问。