Use this document to gather all information needed before deployment.
- Go to: https://www.mongodb.com/cloud/atlas
- Log in (or create account)
- Click "Create" → Create a Cluster (Choose Free Tier)
- Create a database user:
- Username:
bookmyseat_user - Password: Generate strong password
- Username:
- Get connection string:
- Cluster → "Connect" → "Drivers"
- Copy connection string
- Replace
<username>and<password>
MONGO_URI=mongodb+srv://USERNAME:PASSWORD@cluster.mongodb.net/bookmyseat?retryWrites=true&w=majority
Fill in your values:
- Cluster name:
__________________________ - Username:
__________________________ - Password:
__________________________ - Complete URI:
__________________________
- Go to: https://dashboard.razorpay.com/
- Log in
- Settings → API Keys
- Copy:
- Key ID (Public, safe to expose)
- Key Secret (Private, ONLY in backend .env)
Test Key ID (for public use in frontend):
RAZORPAY_KEY_ID=__________________________
Test Key Secret (for backend only):
RAZORPAY_KEY_SECRET=__________________________
Test card for payment testing:
- Card Number:
4111 1111 1111 1111 - Expiry: Any future date (e.g., 12/25)
- CVV: Any 3 digits (e.g., 123)
- Go to: https://platform.openai.com/api-keys
- Log in (or create account)
- Click "Create new secret key"
- Copy key
OPENAI_API_KEY=__________________________
✅ Frontend → frontend/src/firebase.js already configured.
Your Firebase Project ID: bookmyseatsai
No action needed - Firebase is already configured in code.
Create backend/.env with these values:
# MongoDB
MONGO_URI=
# Razorpay
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
# OpenAI
OPENAI_API_KEY=
# Server
PORT=5000
NODE_ENV=productionChecklist:
- MONGO_URI filled
- RAZORPAY_KEY_ID filled
- RAZORPAY_KEY_SECRET filled
- OPENAI_API_KEY filled
- File saved as
backend/.env -
.envis NOT committed (already in .gitignore)
Backend repository: ReshDeen/BookMySeats_AI
Root Directory: backend ✅
Environment Variables to add in Render:
| Variable | Value | From |
|---|---|---|
| MONGO_URI | _____________ | MongoDB Atlas |
| RAZORPAY_KEY_ID | _____________ | Razorpay Dashboard |
| RAZORPAY_KEY_SECRET | _____________ | Razorpay Dashboard |
| OPENAI_API_KEY | _____________ | OpenAI |
| NODE_ENV | production |
Fixed |
After deployment, note:
- Render Backend URL:
https://__________________________
Frontend repository: ReshDeen/BookMySeats_AI
Root Directory: frontend ✅
Build & Output:
- Build Command:
npm run build✅ - Output Directory:
build✅
Environment Variables to add in Vercel:
| Variable | Value | From |
|---|---|---|
| REACT_APP_API_BASE_URL | https://bookmyseat-backend-XXXXX.onrender.com |
Render URL (step 6) |
| REACT_APP_RAZORPAY_KEY_ID | _____________ | Razorpay Dashboard |
After deployment, note:
- Vercel Frontend URL:
https://__________________________
Frontend → frontend/src/firebase.js
const firebaseConfig = {
apiKey: "AIzaSyA0KigMSTkCXvQy0sUEI5nXcWHGcABTzak",
authDomain: "bookmyseatsai.firebaseapp.com",
projectId: "bookmyseatsai",
storageBucket: "bookmyseatsai.firebasestorage.app",
messagingSenderId: "1066738061230",
appId: "1:1066738061230:web:869ea23524d278ef90823f",
measurementId: "G-FN8CELEJ43"
};✅ Already configured - No changes needed
Create a test user:
- Go to Vercel deployed frontend
- Click "Sign Up" (if available) or use "Email Login"
- Register test account:
- Email:
test@example.com - Password:
Test@123456
- Email:
Use Razorpay test card:
- Card Number:
4111 1111 1111 1111 - Expiry:
12/25(or any future date) - CVV:
123(any 3 digits) - Name: Any name
- Amount: Will be pre-filled
Follow this exact order:
- ✅ Set up MongoDB Atlas → Get MONGO_URI
- ✅ Set up Razorpay → Get KEY_ID and KEY_SECRET
- ✅ Set up OpenAI → Get API_KEY
- ✅ Create
backend/.envwith all keys - ✅ Deploy backend to Render → Get Render URL
- ✅ Deploy frontend to Vercel → Use Render URL
- ✅ Test login flow → Check network requests
- ✅ Test payment flow → Try test card
- ✅ Test chatbot → Send test message
Saved URLs for reference:
Backend (Render):
URL: https://___________________________________
Frontend (Vercel):
URL: https://___________________________________
GitHub Repository:
https://github.com/ReshDeen/BookMySeats_AI
MongoDB:
URI: mongodb+srv://___________________________________
Razorpay Account:
Dashboard: https://dashboard.razorpay.com/
Test Credentials:
Email: test@example.com
Password: Test@123456
Test Payment Card:
4111 1111 1111 1111 | 12/25 | 123
- ✅ Never commit
.envfiles - Already in.gitignore - ✅ Never share API keys - Keep RAZORPAY_KEY_SECRET private
- ✅ RAZORPAY_KEY_ID is public - OK to have in frontend code
- ✅ RAZORPAY_KEY_SECRET is private - Only in backend
.env - ✅ MONGO_URI - Only in backend
.env, never in frontend - ✅ OPENAI_API_KEY - Only in backend
.env, never in frontend
Status: ⏳ Ready to start deployment
Next Step: Follow PRODUCTION_DEPLOYMENT_GUIDE.md