feat(backend): establish gin sqlite service skeleton
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
|
||||
当前已完成 Phase 0 和 Phase 1:Android 可运行、设备就绪、workflow、私有样本导入、
|
||||
动态词搜索、最多 5 个候选截图采集、结构化需求提取、候选评估和人工确认停止点均已
|
||||
验证。下一步是 T-201,生成并收敛 Go-Gin、SQLite 和迁移骨架。
|
||||
验证。T-201 后端骨架也已完成,下一步是 T-202,生成并确认 P0 Web/App 低保真原型。
|
||||
|
||||
严格按以下顺序推进:
|
||||
|
||||
@@ -103,5 +103,12 @@ $env:RUN_START_COMMAND = "1"
|
||||
.\init.ps1
|
||||
```
|
||||
|
||||
脚本执行 `test assembleDebug`;上游当前没有单元测试源,因此 `test` 的测试任务为
|
||||
`NO-SOURCE`,但编译与 APK 打包必须成功。后端建立后再追加后端测试和启动命令。
|
||||
脚本先执行 Android `test assembleDebug`,再以 `GOTOOLCHAIN=local` 执行后端
|
||||
`go test ./...`、`go vet ./...` 并构建 API 与 migration 两个入口。后端单独运行:
|
||||
|
||||
```powershell
|
||||
Set-Location backend-api
|
||||
$env:GOTOOLCHAIN = "local"
|
||||
go run ./cmd/migrate up
|
||||
go run ./cmd/api
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user