统一服务启动入口至 Makefile(dev-core/dev-*/db-*/test-*),Alembic 迁移改为 000 起三位顺序编号并经 make db-revision 生成

This commit is contained in:
chenxin committed 2026-08-21 22:12:34 +08:00
1 parent 8ebcc11a8a
commit c090893e63
8 files changed
+162 -50

No files matched your search

+6 -6
View File
@@ -12,13 +12,13 @@
## 运行
```bash
npm install
npm run dev # 开发(tsx watch)
BACKEND_URL=http://127.0.0.1:8000 BFF_PORT=3000 npm start
统一经根目录 Makefile:
npm test # vitest
npm run type-check
```bash
make dev-bff # 开发(tsx watch,:3000)
make test-bff # vitest
make typecheck-bff # tsc --noEmit
# 首次进入 bff/ 需 npm install;环境变量默认值见 src/config.ts
```
环境变量:`BFF_PORT`(默认 3000)、`BACKEND_URL`(默认 http://127.0.0.1:8000)、`BFF_BODY_LIMIT`、`BFF_LOG_LEVEL`。