Double-click or run:
start-backend.bat- URL: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Requirements: Python virtual environment already set up
Double-click or run:
start-frontend-fixed.bat- URL: http://localhost:5173
- Requirements: Node.js dependencies already installed
# Open PowerShell Terminal 1
cd "C:\Users\gkhandpur\CascadeProjects\PredictiveCrowdIntelligence\Predictive-Crowd-Intelligence\backend"
$env: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# Open PowerShell Terminal 2 (separate from backend)
cd "C:\Users\gkhandpur\CascadeProjects\PredictiveCrowdIntelligence\Predictive-Crowd-Intelligence\frontend"
npm run devcd backend
$env:PYTHONPATH = "."
.\.venv\Scripts\python.exe -m uvicorn app.main:app --reload --host 0.0.0.0 --port 8000cd frontend
npm run devInvoke-RestMethod -Uri "http://localhost:8000" -Method Getnetstat -ano | findstr :5173- Type: Virtual Environment (.venv)
- Python Version: 3.13.5
- Location:
backend\.venv\Scripts\python.exe
- Package Manager: npm
- Build Tool: Vite 7.0.6
- Framework: React 18 + TypeScript
- Frontend Application: http://localhost:5173
- Backend API: http://localhost:8000
- API Documentation: http://localhost:8000/docs
- API Health Check: http://localhost:8000
- Run in Separate Terminals: Always run backend and frontend in separate terminal windows/processes
- Directory Paths: Commands are set up for the current workspace structure
- Dependencies: All Python packages and Node.js modules are already installed
- Mock Data: System runs with mock data (weather, events) - API keys needed for production
- Auto-reload: Both servers support hot-reload for development
If either server stops working:
Get-Process | Where-Object {$_.ProcessName -eq "python"} | Stop-Process -Force
# Then run start-backend.batGet-Process | Where-Object {$_.ProcessName -like "*node*"} | Stop-Process -Force
# Then run start-frontend-fixed.bat