feat: 添加项目基础设施、测试框架和路由对接文档

- 新增 .gitignore、ARCHITECTURE.md 项目基础设施文件
- 新增前后端路由对接文档,完整映射前端页面到后端 API 端点
- 配置前端 Vitest 测试框架,添加 API/Store/Utils/Components 单元测试
- 添加后端 UserService 单元测试
- 新增统一测试运行脚本 scripts/run-tests.sh
- 清理旧文档和过期覆盖率报告文件

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
jxw
2026-06-04 08:53:36 +08:00
parent 2f7309a45c
commit 2ff3002b19
40 changed files with 2198 additions and 10634 deletions

60
.gitignore vendored Normal file
View File

@@ -0,0 +1,60 @@
# Dependencies
node_modules/
# Build output
dist/
dist-ssr/
/bin/
/tmp/
# Environment & config (sensitive)
.env
.env.*
!.env.example
backend/configs/config.dev.yaml
# IDE
.idea/
.vscode/
*.suo
*.ntvs*
*.njsproj
*.sln
# OS
.DS_Store
Thumbs.db
# Logs
*.log
npm-debug.log*
.pnpm-error.log*
.pnpm-debug.log
# Test coverage
coverage/
coverage.out
*.lcov
# Cache
.eslintcache
tsconfig.tsbuildinfo
# Vite
vite.config.*.timestamp*
# Go
*.exe
*.test
# Data
/data/
# CI / automation
/.github/
/.continue/
# Misc
*.local
report.html
yarn.lock