fix: doctor report list shows all patient reports, upload area supports file selection, start-dev.bat starts frontends

This commit is contained in:
MingNian
2026-05-20 17:02:25 +08:00
parent 15deddfcb9
commit 5d89dcceeb
5 changed files with 109 additions and 24 deletions

View File

@@ -11,9 +11,8 @@ set "REDIS=C:\Program Files\Redis\redis-server.exe"
set "PG_DATA=D:\APP\data\pgdata"
set "PG_BIN=D:\PostgreSQL\18\pgsql\bin"
set "MINIO_DATA=D:\APP\data\minio"
echo.
echo [1/4] Starting PostgreSQL...
echo [1/6] Starting PostgreSQL...
if exist "%PG_BIN%\pg_ctl.exe" (
"%PG_BIN%\pg_ctl.exe" -D "%PG_DATA%" -l "%PG_DATA%\pg.log" start 2>nul
if errorlevel 1 (
@@ -26,7 +25,7 @@ if exist "%PG_BIN%\pg_ctl.exe" (
)
echo.
echo [2/4] Starting Redis...
echo [2/6] Starting Redis...
tasklist /fi "imagename eq redis-server.exe" | find /i "redis-server.exe" >nul
if errorlevel 1 (
start "Redis" /MIN "%REDIS%" "%ProgramFiles%\Redis\redis.windows.conf"
@@ -36,7 +35,7 @@ if errorlevel 1 (
)
echo.
echo [3/4] Starting MinIO...
echo [3/6] Starting MinIO...
tasklist /fi "imagename eq minio.exe" | find /i "minio.exe" >nul
if errorlevel 1 (
if not exist "%MINIO_DATA%" mkdir "%MINIO_DATA%"
@@ -47,29 +46,42 @@ if errorlevel 1 (
)
echo.
echo [4/4] Starting Backend API...
echo [4/6] Starting Backend API...
cd /d "%~dp0backend"
if exist "%DOTNET%" (
start "HealthManager API" "%DOTNET%" run --project src\HealthManager.WebApi --urls "http://localhost:5000" --environment Development
echo Backend API starting (http://localhost:5000)
echo Swagger: http://localhost:5000/swagger
echo Waiting 15s for backend to boot...
timeout /t 15 /nobreak >nul
) else (
echo [ERROR] .NET SDK not found
echo [ERROR] .NET SDK not found at %DOTNET%
)
echo.
echo [5/6] Starting Patient Frontend...
start "Patient Frontend" cmd.exe /c "cd /d %~dp0frontend-patient && npm run dev"
echo Patient Frontend starting on http://localhost:5173
echo.
echo [6/6] Starting Doctor Frontend...
start "Doctor Frontend" cmd.exe /c "cd /d %~dp0frontend-doctor && npm run dev"
echo Doctor Frontend starting on http://localhost:5174
echo.
echo ==========================================
echo Startup Complete!
echo.
echo Patient App: http://localhost:5173
echo Doctor App: http://localhost:5174
echo Backend API: http://localhost:5000
echo Swagger: http://localhost:5000/swagger
echo MinIO: http://localhost:9001
echo PostgreSQL: localhost:5432
echo Redis: localhost:6379
echo.
echo Frontend (manual start):
echo cd frontend-patient ^&^& npm run dev
echo cd frontend-doctor ^&^& npm run dev
echo ==========================================
echo.
echo All 6 services started. Close the 3 new
echo windows to stop the apps.
echo.
pause