You're getting: "Cannot connect to backend server"
This means the backend is not running. Let's fix it!
Press Win + X and select "Windows PowerShell" or "Terminal"
Copy and paste this:
cd "D:\My Projects\HackPrinceton2025\GenLab\backend"pip install -r requirements.txtWait for this to finish! It may take a few minutes.
python run_backend_simple.pyYou should see:
Starting server on http://localhost:8000
INFO: Uvicorn running on http://127.0.0.1:8000
β SUCCESS! The backend is now running.
DO NOT CLOSE THIS WINDOW! Minimize it if you want, but keep it running.
Open your browser and go to:
You should see: {"status":"healthy"}
Now go back to your frontend - the error should be gone! π
From the root directory (GenLab/):
cd "D:\My Projects\HackPrinceton2025\GenLab"
npm startThis starts both frontend and backend together!
Try: py run_backend_simple.py instead
Run: pip install -r requirements.txt
Close the other application using port 8000
Run the health check:
cd backend
python check_backend.pyThe backend MUST stay running for your frontend to work!
You can:
- β Minimize the terminal (it still runs)
- β
Use
npm startto run both together - β Keep the terminal open in the background
After starting, test in a new terminal:
curl http://localhost:8000/healthOr open in browser: http://localhost:8000/docs