feat: 增加 YAML 配置与一键启动脚本

This commit is contained in:
caoxiaozhu
2026-07-21 16:15:01 +08:00
parent a5fbe5130a
commit 7c38e37b23
15 changed files with 954 additions and 71 deletions

View File

@@ -22,9 +22,9 @@ npm install
npm run dev
```
开发服务器默认运行在 `http://localhost:16801`
后端 API 默认通过 Vite 代理转发到 `http://localhost:17861`(见 `vite.config.ts`
通过根目录 `scripts/start-dev.sh` 启动时,开发服务器端口和后端代理端口来自
`backend/config.yaml``server` 配置。单独运行 `npm run dev` 时默认使用前端
`16801` 和后端 `17861`;可用 `FRONTEND_PORT``BACKEND_PORT` 环境变量覆盖
开发环境默认联调真实后端接口。如需进行隔离前端开发,可显式启用 Mock