nomadro/apps/api/README.md
eric 3e5b7c2098 Monorepo super-optimize: src layout, workspace scripts, docs.
Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 00:34:04 +08:00

28 lines
735 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.

# Nomadro 统一 API
合并原三套后端为一个入口(路径兼容):
| 模块 | 来源 | 路径前缀 |
|---|---|---|
| `services/ebook_svc` | 原 wemini/backend | `/api` `/api/ebook` `/api/admin` `/api/admin/douyin` |
| `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 进程。