The client expects real business data, not mock/dummy data. Here's how to activate real business search:
- Go to Google Cloud Console
- Create a new project or select existing
- Enable "Places API" and "Geocoding API"
- Create credentials (API Key)
- Restrict the key to your backend domain for security
- Go to Yelp Developers
- Create an app to get API key
- Copy the API key for backend configuration
# 1. Push to GitHub (already done)
git push origin main
# 2. Connect to Railway
# - Go to railway.app
# - Connect GitHub repo
# - Deploy from main branch
# 3. Add Environment Variables in Railway Dashboard:
OPENAI_API_KEY=sk-...
GOOGLE_PLACES_API_KEY=AIza...
GOOGLE_PLACES_ENABLED=true
YELP_API_KEY=your_yelp_key
YELP_API_ENABLED=true
ENV=production# 1. Install Heroku CLI
# 2. Create Heroku app
heroku create your-app-name
# 3. Set environment variables
heroku config:set OPENAI_API_KEY=sk-...
heroku config:set GOOGLE_PLACES_API_KEY=AIza...
heroku config:set GOOGLE_PLACES_ENABLED=true
heroku config:set YELP_API_KEY=your_yelp_key
heroku config:set YELP_API_ENABLED=true
# 4. Deploy
git subtree push --prefix backend heroku mainUpdate Vercel environment variables:
NEXT_PUBLIC_API_URL=https://your-backend-url.railway.app-
Test Backend Directly:
https://your-backend-url.railway.app/businesses?location=Manila&niche=lawyer -
Test Frontend:
- Should now fetch real businesses from Google Places/Yelp
- Will show actual business names, addresses, phone numbers
- Real websites will be analyzed for scoring
Instead of mock data like "Downtown Law Office - Manila", you'll get:
- Real business names: "Sycip Salazar Hernandez & Gatmaitan"
- Real addresses: "SyCip Law Center, 105 Paseo de Roxas, Makati"
- Real phone numbers: "+63 2 8845 2345"
- Real websites: "https://syciplaw.com"
# Test if APIs are working
curl "https://your-backend-url/businesses?location=Manila&niche=restaurant"
# Should return real businesses with actual data- Get Google Places API key (15 minutes)
- Deploy backend to Railway/Heroku (30 minutes)
- Update frontend environment variable (5 minutes)
- Test with real data (10 minutes)
Total setup time: ~1 hour
The backend code is already ready for real APIs - just needs the keys and deployment!