nomadro/apps/README.md
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

26 lines
1.2 KiB
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.

# Vertical apps — native App Router mounts (no iframe / no proxy)
| 入口 | URL | 源码 | 后端 / 支付 | 小程序 |
|------|-----|------|-------------|--------|
| 出海导航 | `/nav` | `apps/navmini` + `app/nav` | 静态 | weapp / tt / xhs |
| 数字游民小册 | `/book` | `apps/ebook` + `app/book` | `apps/ebook/backend` · Creem/NOWPayments | wemini / dymini / redmini |
| 旅居社群 | `/community` | `apps/nomadweb` + `app/community` | `apps/nomadweb/backend` · zpay | wemini / dymini / redmini |
| 私域会员 | `/vip` | `apps/nomadvip` + `app/vip` | `apps/payjsapi` · zpay/xpay + PB | 规划中 Taro |
门户 `pnpm dev`(`:3000`)一次启动即可打开四个入口。别名:`@ebook/*`、`@community/*`、`@navmini/*`、`@vip/*`。
- VIP 的 Next Route Handlers 挂在门户根路径 `/api/{pay,auth,vip,promo}`(与 FastAPI 的 `/api/v1/*` 分流)
- Community FastAPI rewrite:仅 `/api/v1/:path*` → `API_URL`
- 集成脚本:`node scripts/integrate-apps.mjs`
```bash
pnpm install
pnpm dev
# http://localhost:3000/nav
# http://localhost:3000/book
# http://localhost:3000/community
# http://localhost:3000/vip
```
**集成策略**:本仓优先打通体验与规范;稳定后再反哺四个垂直独立仓。