chore: add remaining test docs, scripts and temp files

- Add Git commit preparation checklist
- Add Phase testing guides and issue tracking
- Add utility scripts (env setup, test data initialization)
- Add temp migration SQL files (for reference)
- Update startup scripts and README
- Remove obsolete scripts
This commit is contained in:
2025-11-16 15:44:55 +08:00
parent 1992232fda
commit 855d142fec
32 changed files with 9125 additions and 113 deletions

View File

@@ -1,58 +1,63 @@
@echo off
chcp 65001 >nul
echo ========================================
echo AI临床研究平台 - 一键启动脚本
echo AI Clinical Research Platform
echo One-click Startup Script
echo ========================================
echo.
echo [1/5] 检查Docker容器状态...
echo [1/7] Checking Docker status...
docker ps >nul 2>&1
if errorlevel 1 (
echo Docker未运行,请先启动Docker Desktop
echo ERROR: Docker is not running. Please start Docker Desktop first.
pause
exit /b 1
)
echo OK: Docker is running
echo [2/5] 启动PostgreSQL和Redis容器...
echo [2/7] Starting PostgreSQL and Redis containers...
cd /d "%~dp0"
docker-compose up -d
if errorlevel 1 (
echo ❌ Docker容器启动失败
echo ERROR: Failed to start Docker containers
pause
exit /b 1
)
echo ✅ 数据库容器启动成功
echo OK: Database containers started
echo [3/5] 等待数据库就绪...
echo [3/7] Waiting for database to be ready...
timeout /t 5 /nobreak >nul
echo OK: Database is ready
echo [4/5] 启动后端服务(新窗口)...
start "AI临床研究平台-后端" cmd /k "cd /d %~dp0backend && npm run dev"
echo ✅ 后端服务启动中...
echo [4/7] Starting Python extraction service (new window)...
start "Document Extraction Service" cmd /k "cd /d %~dp0extraction_service && venv\Scripts\python.exe -m uvicorn main:app --host 0.0.0.0 --port 8000"
echo OK: Python service starting...
echo [5/5] 等待后端启动...
echo [5/7] Waiting for extraction service...
timeout /t 3 /nobreak >nul
echo [6/6] 启动前端服务(新窗口)...
start "AI临床研究平台-前端" cmd /k "cd /d %~dp0frontend && npm run dev"
echo ✅ 前端服务启动中...
echo [6/7] Starting backend server (new window)...
start "AI Clinical Research - Backend" cmd /k "cd /d %~dp0backend && npm run dev"
echo OK: Backend starting...
echo [7/7] Waiting for backend, then starting frontend...
timeout /t 3 /nobreak >nul
start "AI Clinical Research - Frontend" cmd /k "cd /d %~dp0frontend && npm run dev"
echo OK: Frontend starting...
echo.
echo ========================================
echo 启动完成!
echo Startup Complete!
echo ========================================
echo.
echo 后端地址: http://localhost:3001
echo 前端地址: http://localhost:3000
echo Python Service: http://localhost:8000 (Docs: /docs)
echo Backend: http://localhost:3001
echo Frontend: http://localhost:5173
echo.
echo 请等待10秒后访问前端地址
echo Please wait 10 seconds before accessing the frontend...
echo.
timeout /t 10 /nobreak
start http://localhost:3000
start http://localhost:5173
echo.
echo 按任意键关闭此窗口...
echo Press any key to close this window...
pause >nul