-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
36 lines (29 loc) · 885 Bytes
/
start-dev.bat
File metadata and controls
36 lines (29 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
title Orchestration Framework - Dev Launcher
cd /d "%~dp0"
echo Installing Python dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: pip install failed
pause
exit /b 1
)
echo Installing frontend dependencies...
cd frontend
call npm install
if errorlevel 1 (
echo ERROR: npm install failed
pause
exit /b 1
)
cd ..
echo Starting FastAPI backend on http://localhost:8000 ...
start "FastAPI Backend" cmd /k "cd /d "%~dp0" && python -m uvicorn api.server:app --reload --port 8000"
echo Starting React frontend on http://localhost:5173 ...
start "React Frontend" cmd /k "cd /d "%~dp0\frontend" && npm run dev"
echo Waiting for frontend to start...
timeout /t 5 /nobreak >nul
echo Opening browser...
start http://localhost:5173
echo.
echo All services launched. Close the backend and frontend terminal windows to stop them.