Changes: - backend/app/utils/coolbot_matcher.py: 新建一尘数据库匹配工具模块 - backend/app/routers/seek.py: 更新导入,添加match-confirm/matched-user/publisher端点 - frontend/src/pages/News.jsx: API调用从information迁移到seek Note: Skill文档已单独更新到47.96.181.36 |
||
|---|---|---|
| .. | ||
| app | ||
| uploads | ||
| .dockerignore | ||
| .env.example | ||
| Dockerfile | ||
| README.md | ||
| VERSION | ||
| requirements.txt | ||
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-你的密钥