# 小白复盘重建版 本目录是依据产品规格说明书从零建立的新系统。旧系统只用于行为对照,新系统不得在运行时导入或读取旧系统源码。 ## 本地开发 后端: ```powershell cd next py -m venv .venv .\.venv\Scripts\python.exe -m pip install -r requirements-dev.txt .\.venv\Scripts\python.exe -m uvicorn backend.main:app --host 127.0.0.1 --port 8780 --reload ``` 前端: ```powershell cd next\frontend npm.cmd install npm.cmd run dev ``` 浏览器访问`http://127.0.0.1:5173`。开发服务器将`/api`转发到后端8780端口。 ## 最小质量门禁 ```powershell cd next .\.venv\Scripts\python.exe -m ruff check backend tests .\.venv\Scripts\python.exe -m pytest cd frontend npm.cmd run check npm.cmd run test npm.cmd run build ``` 迁移约束和阶段状态见`../docs/migration/重建迁移章程.md`。