-
Get Your IP Address:
# Windows ipconfig # Mac/Linux ifconfig
-
Update API Configuration:
- Open
constants/apiConfig.js - Update the
getLocalIP()function with your IP:
const getLocalIP = () => { return 'YOUR_IP_HERE'; // Replace with your actual IP };
- Open
-
Start Backend Server:
cd backend npm install # Only needed first time npm start
-
Start Frontend:
npx expo start
-
Install ngrok:
npm install -g ngrok
-
Start your backend server:
cd backend && npm start
-
In a new terminal, expose your backend:
ngrok http 5000
-
Copy the ngrok URL (looks like
https://abc123.ngrok.io) -
Update apiConfig.js:
const API_CONFIG = { DEVELOPMENT: { BASE_URL: 'https://abc123.ngrok.io', // Your ngrok URL API_URL: 'https://abc123.ngrok.io/api' } };
- Deploy to Heroku/Railway/Vercel
- Update apiConfig.js:
const useProduction = true; // Enable production mode
- Set your production URL in PRODUCTION config
- Clone the repo
- Install dependencies:
npm install(frontend) andcd backend && npm install - Update your IP in
constants/apiConfig.js - Start backend:
cd backend && npm start - Start frontend:
npx expo start
- Team Member 1:
192.168.21.95(original setup) - Team Member 2:
192.168.0.105(current) - Your IP:
___________(fill in your IP)
- Railway.app (easiest for Node.js)
- Heroku (popular choice)
- Render.com (free tier)
- Vercel (for API routes)
- ✅ Works for everyone automatically
- ✅ No IP address changes needed
- ✅ Works on mobile devices
- ✅ Professional deployment
- Backend server not running
- Wrong IP address in config
- Firewall blocking connections
- Check if backend is running on port 5000
- Verify IP address is correct
- Make sure you're on the same network
- Run
npm installin both frontend and backend - Restart metro bundler:
npx expo start --clear
- Backend server starts without errors
- Database connects successfully
- Frontend can reach backend API
- Login/registration works
- App navigation flows properly
Need help? Check the console logs for specific error messages!