Files
WanderQ-MiniAPP2.0/README.md

23 lines
785 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.

# WonderQ MiniAPP
Mobile H5, admin, and API workspace for the WonderQ MiniAPP project.
## Scripts
- `npm run dev` starts the H5 Vite app.
- `npm run dev:admin` starts the admin app.
- `npm run dev:api` starts the API service.
- `npm run build:all` builds all workspaces.
## 后端内容发布
商品数据的正式源文件是 `src/generated-products.json`。后端部署时请从仓库根目录执行内容发布流程,不要把商品数据重新打进 H5
```bash
npm run db:content:release -- validate
npm run db:content:release -- plan
npm run db:content:release -- apply
```
`apply` 会把商品、首页配置、活动和媒体引用写入生产数据库,并在 `artifacts/` 生成可回滚快照。需要回滚时,使用发布命令输出的 `rollback` 命令。