-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-both-servers.bat
More file actions
26 lines (20 loc) · 1.14 KB
/
start-both-servers.bat
File metadata and controls
26 lines (20 loc) · 1.14 KB
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
# Start both Backend and Frontend simultaneously
# This script opens both servers in separate windows
@echo off
echo Starting Predictive Crowd Intelligence - Full System
echo =============================================
echo Starting Backend Server...
start "Backend Server" cmd /k "cd /d C:\Users\gkhandpur\CascadeProjects\PredictiveCrowdIntelligence\Predictive-Crowd-Intelligence\backend && set PYTHONPATH=. && C:\Users\gkhandpur\CascadeProjects\PredictiveCrowdIntelligence\Predictive-Crowd-Intelligence\backend\.venv\Scripts\python.exe -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"
echo Waiting 5 seconds for backend to initialize...
timeout /t 5 /nobreak > nul
echo Starting Frontend Server...
start "Frontend Server" cmd /k "cd /d C:\Users\gkhandpur\CascadeProjects\PredictiveCrowdIntelligence\Predictive-Crowd-Intelligence\frontend && npm run dev"
echo.
echo =============================================
echo Both servers are starting in separate windows:
echo Backend: http://localhost:8000
echo Frontend: http://localhost:5173
echo API Docs: http://localhost:8000/docs
echo =============================================
echo.
pause