Your Study Assistant is ready to deploy! All code is committed and pushed to GitHub.
- Go to: https://railway.app/new
- Click "Login with GitHub"
- Click "Deploy from GitHub repo"
- Select: StudyAssistant repository
- Railway will auto-detect the Python app
- Wait for deployment (2-3 minutes)
- Copy the URL (looks like:
https://xxx.railway.app)
- Go to: https://render.com/
- Sign in with GitHub
- New → Web Service
- Connect StudyAssistant repository
- Configuration:
- Root Directory:
backend - Build:
pip install -r requirements-production.txt - Start:
uvicorn app_production_v2:app --host 0.0.0.0 --port $PORT
- Root Directory:
- Wait for first deployment (5-10 minutes)
- Copy the URL (looks like:
https://xxx.onrender.com)
-
Go to: https://app.netlify.com/sites/assistantstudy/settings/env
-
Click "Add a variable" for each of these:
Key: NEXT_PUBLIC_API_URL
Value: <paste your Railway/Render URL from Step 1>
Open your .env.local file and copy these 8 values:
NEXT_PUBLIC_FIREBASE_API_KEY
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
NEXT_PUBLIC_FIREBASE_PROJECT_ID
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
NEXT_PUBLIC_FIREBASE_APP_ID
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
NEXT_PUBLIC_FIREBASE_DATABASE_URL
- Save all variables
- Go to: https://app.netlify.com/sites/assistantstudy/deploys
- Click "Trigger deploy" → "Deploy site"
- Wait for build (2-3 minutes)
- Check for "Published" status
Open in browser:
https://your-backend-url/health
Should show: {"backend": "online", "status": "healthy"}
- Visit: https://assistantstudy.netlify.app
- Sign in with Firebase
- Go to Flashcards page
- Click "Generate Exam-Grade Flashcards"
- Enter topic: "Mitosis"
- Click "Generate Flashcards"
- Should see 10 flashcards appear
- Try reviewing one (Show Answer → Rate it)
- Backend deployed to Railway/Render
- Backend
/healthendpoint works - All 9 Netlify env variables set
- Netlify rebuild completed
- Frontend loads without errors
- Can sign in with Firebase
- Can generate flashcards
- Can review flashcards with SRS
Your site: https://assistantstudy.netlify.app
✅ Exam-grade flashcard generation (7 card types) ✅ SRS review system (4-level rating) ✅ Mistake tracking and TRAP cards ✅ Firebase authentication ✅ All study tools and dashboard
📝 Mock Mode - Flashcards use template data. To upgrade to real AI, see PRODUCTION_SETUP_GUIDE.md
- Check Railway/Render logs
- Verify start command is correct
- Test:
curl https://your-backend-url/health
- Open browser console (F12)
- Check Network tab for failed API calls
- Verify
NEXT_PUBLIC_API_URLis set correctly (no trailing slash)
- Check backend is responding
- Verify all env variables are set
- Clear browser cache and retry
- Check PRODUCTION_SETUP_GUIDE.md for detailed instructions
- Check DEPLOYMENT_STATUS_FINAL.md for architecture overview
- Verify backend health:
<your-backend-url>/health - Check Netlify deploy logs
- Check browser console for errors
Total deployment time: 15 minutes ⏱️
Your credentials are in .env.local - do NOT commit this file! 🔐