jiachenlong/backend
socool 7100f2d40e 清理:注释information.py中废弃的seek/deal重复端点
已废弃并注释的端点(统一使用 /api/seek/* 或 /api/deal/*):
- /information/seek/match → /api/seek/my-match
- /information/seek/network-match/{id} → /api/seek/network-match/{id}
- /information/my-seeks → /api/seek/list
- /information/seek/match-confirm → /api/seek/match-confirm
- /information/seek/matched-user/{id} → /api/seek/matched-user/{id}
- /information/seek/publisher/{id} → /api/seek/publisher/{id}
- /information/seek/stats → /api/seek/stats
- /information/deal/stats → /api/deal/stats

注意:评论相关端点保留(comment, comments),表为空但代码存在
2026-04-24 11:21:41 +08:00
..
app 清理:注释information.py中废弃的seek/deal重复端点 2026-04-24 11:21:41 +08:00
uploads 完整C环境部署版本 v1.2.12 2026-03-23 11:08:52 +08:00
.dockerignore 完整C环境部署版本 v1.2.12 2026-03-23 11:08:52 +08:00
.env.example 完整C环境部署版本 v1.2.12 2026-03-23 11:08:52 +08:00
Dockerfile 完整C环境部署版本 v1.2.12 2026-03-23 11:08:52 +08:00
README.md 完整C环境部署版本 v1.2.12 2026-03-23 11:08:52 +08:00
VERSION v1.2.98 - 分离前后端版本文件,独立管理 2026-04-19 21:17:06 +08:00
requirements.txt 完整C环境部署版本 v1.2.12 2026-03-23 11:08:52 +08:00

README.md

后端服务 - FastAPI

启动方式

开发环境

# 安装依赖
pip install -r requirements.txt

# 启动服务
python -m uvicorn app.main:app --port 3000 --host 0.0.0.0 --reload

生产环境

# 后台运行
nohup python -m uvicorn app.main:app --port 3000 --host 0.0.0.0 > /tmp/uvicorn.log 2>&1 &

# 或使用 systemd
sudo systemctl start zodiac-backend

配置说明

编辑 .env 文件:

# 数据库
DATABASE_URL=postgresql://postgres:密码@localhost:5432/zodiac

# JWT
SECRET_KEY=你的密钥

# OCR API
DASHSCOPE_API_KEY=sk-你的密钥

API 文档

启动后访问:http://localhost:3000/docs