1) Firebase Auth + Deploy
firebase login --reauth
firebase use hit-a-lick-database
firebase deploy --only functions,hosting
Run these in order to get full props, games, players, billing, and deployment running. Check readiness anytime at /api/setup/check.
GET https://api-lifnvql5aa-uc.a.run.app/api/setup/check
firebase login --reauth
firebase use hit-a-lick-database
firebase deploy --only functions,hosting
firebase functions:secrets:set ODDS_API_KEY
firebase functions:secrets:set ODDS_API_BOOKMAKERS
# Suggested value:
# fanduel,draftkings,betmgm,caesars,espnbet,pointsbetus
firebase functions:secrets:set STRIPE_SECRET_KEY
firebase functions:secrets:set STRIPE_WEBHOOK_SECRET
firebase functions:secrets:set STRIPE_PRICE_CORE_MONTHLY
firebase functions:secrets:set STRIPE_PRICE_BRUCE_PICKS_MONTHLY
firebase functions:secrets:set STRIPE_PRICE_BRUCE_PREMIUM_MONTHLY
RapidAPI can help as backup provider only. Keep The Odds API primary.
firebase functions:secrets:set RAPIDAPI_KEY
firebase functions:secrets:set RAPIDAPI_ODDS_HOST
# Suggested host:
# odds.p.rapidapi.com
/api/games?sport=all
/api/players?sport=all&limit=200
/api/playerStats?sport=all&limit=200
/api/props?sport=all&allEventProps=1&includeBooks=1
In Web App, turn on Max Coverage for fullest props + books mode.
Open /app.html
Enable: Max Coverage
Click: Refresh Data