nomadro/apps/api/README.md
Eric 3f7528f824 Add VIP knowledge community and device shop with native weapp UX.
Document memo/shop admin routes, deploy scripts, and cache-first feed performance in README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-06 16:58:17 +08:00

29 lines
869 B
Markdown
Raw Permalink 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.

# Nomadro 统一 API
合并原三套后端为一个入口(路径兼容):
| 模块 | 来源 | 路径前缀 |
|---|---|---|
| `services/ebook_svc` | 原 wemini/backend | `/api` `/api/ebook` `/api/admin` `/api/admin/douyin` |
| └ shop / memo | VIP 设备商城 · 知识社群 | `/api/ebook/shop*` `/api/ebook/memo*` · `/api/admin/shop` `/api/admin/memo` |
| `services/community_svc` | 原 community-api | `/api/v1/*` |
| `services/pay_svc` | 原 payjsapi | `/nomadvip` `/digital` `/api/meetup` … |
## 本地
```bash
# 首次建 venv
cd apps/api
python -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt
cd ../..
# 日常(仓库根)
pnpm dev:api
# → http://127.0.0.1:8080/docs · /health
```
生产:可逐步把 `api.nomadro.cn` 指到本进程。
管理后台 SPA 在 `apps/admin`(admin.nomadro.cn),不并入本 API 进程。