people-reading/backend/README.md
2026-05-11 23:26:11 +08:00

25 lines
498 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 后端提供微信登录、图片上传、手相报告生成和历史报告管理。
## Run
```bash
python3 -m venv venv
venv/bin/pip install -r requirements.txt
cp .env.example .env
venv/bin/uvicorn app.main:app --reload
```
## Cleanup Expired Images
```bash
venv/bin/python -m app.cli
```
## API Prefix
所有业务 API 位于 `/api/v1`
本地开发默认 `WECHAT_MOCK_LOGIN=true``OPENAI_API_KEY` 为空时会返回 mock 报告,便于先联调小程序流程。