Files
aivideo/README.md

62 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AIVideo
基于 `docs/AI视频平台开发文档.md` 实现的单仓 AI 视频平台原型,包含:
- `backend`FastAPI + SQLAlchemy + Celery 风格任务链路
- `frontend-web`统一前端Next.js同时承载用户前台与 `/admin` 管理后台
- `sql`:初始化库表与基础种子数据
- `deploy`:部署相关文件占位
## 目录结构
```text
AIVideo/
backend/
frontend-web/
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 run dev
```
## 默认账号
- 用户端:自行注册
- 管理后台:`admin / Admin@123456`
## 访问地址
- 用户前台:`http://localhost:3000`
- 管理后台:`http://localhost:3000/admin/login`
## 说明
- 本地默认支持 mock OpenAI 与 mock Seedance 任务链路。
- 若配置真实供应商账号与可访问的 `baseUrl`,后端会按对应协议发起真实请求。
- 任务结果默认落到 `backend/storage_data`,并通过 `/storage` 暴露访问。