Terminal 1 — Backend:
cd backend
npm install
npm start
# ✅ Starts on http://localhost:5000Terminal 2 — Frontend:
cd frontend
npm install
npm run dev
# ✅ Opens on http://localhost:3001Open: http://localhost:3001 — done!
Set these in your Render dashboard under Environment:
NODE_ENV=production
PORT=5000
MONGO_URI=your_mongodb_connection_string
GITHUB_API_KEY=your_github_personal_access_token
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_CALLBACK_URL=https://your-render-app.onrender.com/api/auth/github/callback
CLIENT_BASE_URL=https://your-vercel-app.vercel.app
SESSION_SECRET=any_random_long_string
Set this in Vercel dashboard under Settings → Environment Variables:
VITE_API_BASE_URL=https://your-render-app.onrender.com
| Error | Cause | Fix |
|---|---|---|
Failed to fetch |
Backend not running | Run npm start in the backend/ folder |
OAuth2Strategy requires clientID |
.env not found |
Make sure backend/.env exists |
No repos found + Failed to fetch |
Wrong API URL | Check VITE_API_BASE_URL in frontend/.env |
| Login not working locally | Cookie issue | Do NOT set NODE_ENV=production locally |