Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/hack4impact-umd/breastfeeding-center-gw/llms.txt

Use this file to discover all available pages before exploring further.

The BCGW Dashboard deploys to Firebase Hosting automatically via GitHub Actions on every merge to main. For manual or out-of-band deployments, the Firebase CLI provides targeted deploy commands for hosting, functions, and Firestore rules.

Production environment

The BCGW Dashboard is hosted on Firebase Hosting at https://breastfeeding-center-gw.web.app/. The hosting configuration is defined in firebase.json, which also specifies the Firestore rules file (firestore.rules), index definitions (firestore.indexes.json), and emulator settings.

CI/CD with GitHub Actions

Two workflows automate deployments. They live in .github/workflows/:
Workflow fileTriggerTarget
firebase-hosting-merge.ymlMerge to mainProduction
firebase-hosting-pull-request.ymlPull request opened or updatedPreview channel
Push to main and the production site updates automatically. Open a pull request and GitHub Actions posts a preview URL as a PR comment — no manual steps required.

Manual deployment

If you need to deploy outside of CI, use the Firebase CLI directly.
Before deploying Cloud Functions, make sure all production environment variables are set in cloud-functions/functions/.env. Missing API keys (Acuity, Stripe, Squarespace) will cause functions to fail at runtime. Verify your configuration with firebase functions:config:get before deploying.
1

Authenticate with Firebase

Log in to the Firebase CLI if you haven’t already:
firebase login
2

Build the React app

Vite outputs the production bundle to react-app/dist/, which Firebase Hosting serves as the site root:
cd react-app && npm run build
3

Deploy to Firebase

Run the appropriate deploy command from the project root:
firebase deploy

Project configuration files

FilePurpose
firebase.jsonConfigures hosting public directory, rewrites, functions source, and emulator ports
firestore.rulesSecurity rules controlling read/write access to Firestore collections
firestore.indexes.jsonComposite index definitions required for dashboard queries
Deploy Firestore rules and indexes separately with firebase deploy --only firestore whenever you update access control or add new query patterns.

Build docs developers (and LLMs) love