rebuild(stage-1): establish isolated application skeleton

This commit is contained in:
leefer
2026-07-30 00:46:43 +08:00
parent 6df26a2545
commit 603e73d128
32 changed files with 2691 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# 小白复盘重建版
本目录是依据产品规格说明书从零建立的新系统。旧系统只用于行为对照,新系统不得在运行时导入或读取旧系统源码。
## 本地开发
后端:
```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`