Files
AI-Website/backend/README.md
2026-01-09 09:48:57 +08:00

30 lines
629 B
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.
# Backend - FastAPI
## 简介
本目录为后端服务,基于 FastAPI 框架负责用户、余额、AI 应用等 API。
## 运行方式
```bash
cd backend
python -m venv venv
source venv/bin/activate # Windows 下用 venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
```
## 目录结构
```
backend/
├── app/
│ ├── main.py
│ ├── models.py
│ ├── schemas.py
│ ├── database.py
│ └── routers/
│ ├── users.py
│ └── balance.py
├── requirements.txt
└── README.md
```