nomadro/apps/ebook/dymini/README.md
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

51 lines
1.6 KiB
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.

# Dymini(抖音小程序电子书)
抖音小程序电子书,结构对齐微信版 [`../wemini`](../wemini/)。现为 monorepo [`ebook`](../README.md) 子目录。支付暂为模拟发货(`TT_PAY_MOCK=true`)。
| 模块 | 技术 | 目录 |
|------|------|------|
| 小程序 | Taro 4 + React(`tt`) | `miniapp/` |
| API | FastAPI + SQLite | `backend/` |
| 管理后台 | Vite + React | `admin/` |
| 内容稿 | Markdown | `data/ebook.md` |
| 运维 | nginx / systemd / 脚本 | `deploy/` |
## 域名与密钥
| 项 | 值 |
|----|-----|
| API | https://dyapi.nomadro.cn(线上 **:8011**) |
| Admin | https://dyadmin.nomadro.cn |
| AppID | `tt995defe007255b2701` |
| AppSecret | `8628800c6f2290175180b94e255380c2e9d34dc0` |
| 后台 | `admin` / `Xiao4669805` |
| JWT | `dymini-jwt-2026` |
| 默认道具 | `ebook_unlock_default` @ ¥188(试读 **100%**,便于联调) |
| 支付 | `TT_PAY_MOCK=true` |
| ntfy | 默认关;topic `dymini` |
> **注意:** `dy.nomadro.cn` 服务器上已有其他业务(WG 网关),本项目**不会覆盖**该站点。落地页可用 `dyadmin`。
抖音后台 request 合法域名请加:`dyapi.nomadro.cn`。更多凭证见 `douyin.txt`、`backend/.env`。
## 本地开发
```bash
# API :8000
cd backend && .\.venv\Scripts\uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
# 小程序 watch → dist/
cd miniapp && npm run dev:tt
```
或仓库根脚本:`npm run dev:api` / `dev:admin` / `dev:miniapp`。
抖音开发者工具打开本目录下 `miniapp/`,关闭合法域名校验。
## 部署
```bash
cd admin && npm run build
python deploy/deploy.py
```