docs: update architecture docs for Vue 3 + FastAPI separation, add one-click start.bat

- CLAUDE.md: remove duplicate architecture section, fix MAX_RETRY 5→3
- README.md: update architecture diagram to 3-tier, add start.bat instructions
- ROADMAP.md: add 阶段六 layered generation v5 (items 16-20)
- start.bat: one-click startup with auto port-kill and path-with-spaces fix
- package-lock.json: updated from npm install
This commit is contained in:
2026-05-21 22:10:22 +08:00
parent 74f3f03d2c
commit 7c1aa7d934
5 changed files with 101 additions and 62 deletions
+38 -16
View File
@@ -1,31 +1,53 @@
@echo off
echo ============================================
echo JRXML 代理 - 全自动启动 (验证 + API + UI)
echo ============================================
setlocal enabledelayedexpansion
echo ============================================
echo JRXML Agent - One-Click Start
echo ============================================
echo.
echo [1/3] 启动验证服务 (端口 8001)...
start "JRXML 验证服务" cmd /c "cd /d %~dp0 && .venv\Scripts\python -m uvicorn validation_service.main:app --port 8001 --host 0.0.0.0"
REM ========== Kill processes on ports ==========
echo [Pre-check] Cleaning up occupied ports...
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8001.*LISTENING" 2^>nul') do (
echo Killing PID %%a on port 8001...
taskkill /PID %%a /F 2>nul
)
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000.*LISTENING" 2^>nul') do (
echo Killing PID %%a on port 8000...
taskkill /PID %%a /F 2>nul
)
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":5173.*LISTENING" 2^>nul') do (
echo Killing PID %%a on port 5173...
taskkill /PID %%a /F 2>nul
)
echo.
REM ========== Detect Python ==========
set PYTHON=python
if exist "%~dp0.venv\Scripts\python.exe" set "PYTHON=%~dp0.venv\Scripts\python.exe"
echo Using Python: %PYTHON%
echo.
REM ========== Start services ==========
echo [1/3] Starting validation service on port 8001...
start "JRXML-Validator" cmd /k "cd /d "%~dp0" && %PYTHON% -m uvicorn validation_service.main:app --port 8001 --host 0.0.0.0"
timeout /t 3 /nobreak >nul
echo [2/3] 启动后端 API (端口 8000)...
start "JRXML API" cmd /c "cd /d %~dp0 && .venv\Scripts\python -m uvicorn api_server:app --port 8000 --host 0.0.0.0"
echo [2/3] Starting backend API on port 8000...
start "JRXML-API" cmd /k "cd /d "%~dp0" && %PYTHON% -m uvicorn api_server:app --port 8000 --host 0.0.0.0"
timeout /t 3 /nobreak >nul
echo [3/3] 启动前端开发服务器 (端口 5173)...
start "JRXML Frontend" cmd /c "cd /d %~dp0\frontend && npm run dev"
echo [3/3] Starting frontend dev server on port 5173...
start "JRXML-Frontend" cmd /k "cd /d "%~dp0frontend" && npm run dev"
timeout /t 3 /nobreak >nul
echo.
echo ============================================
echo 启动完成
echo 验证服务: http://localhost:8001
echo 后端 API: http://localhost:8000
echo 前端界面: http://localhost:5173
echo All services started!
echo Frontend : http://localhost:5173
echo Backend : http://localhost:8000
echo Validator : http://localhost:8001
echo ============================================
echo.
echo 关闭此窗口不会停止服务。关闭服务窗口或运行 stop.bat 停止。
echo Close the service windows or run stop.bat to stop.
pause