The backend is running an old version without the Dijkstra endpoint.
cd backend
restart_server.batThis will:
- Kill any process on port 8000
- Wait 2 seconds
- Start the updated backend with Dijkstra support
-
Kill existing processes:
- Open Task Manager (Ctrl+Shift+Esc)
- Find "Python" processes
- End all Python tasks
-
Start backend:
cd backend venv\Scripts\activate uvicorn main:app --reload --host 127.0.0.1 --port 8000
If port 8000 is stuck, use port 8001:
-
Start on port 8001:
cd backend venv\Scripts\activate uvicorn main:app --reload --host 127.0.0.1 --port 8001
-
Update frontend - Change all instances of:
http://127.0.0.1:8000→http://127.0.0.1:8001http://localhost:8000→http://localhost:8001
Test the health endpoint:
curl http://127.0.0.1:8000/healthShould return: {"status":"OK"}
Test the Dijkstra endpoint exists:
curl http://127.0.0.1:8000/docsOpen in browser to see API documentation with the new /dijkstra-multi-route endpoint.
- Start backend (see above)
- Start frontend:
npm run dev - Go to http://localhost:3000/home
- Enter route (e.g., "Kolkata" to "Salt Lake")
- Toggle the Dijkstra checkbox
- See routes change between modes
- Use
restart_server.batto force kill and restart - Or use Task Manager to end Python processes
- Or use port 8001 instead
Make sure you're in the virtual environment:
cd backend
venv\Scripts\activate- Check CORS settings in
backend/main.py - Verify port matches in frontend code
- Check Windows Firewall isn't blocking
- Backend is running old code
- Use
restart_server.batto reload - Check console for import errors