An app to accompany the Climate Museum's 2020 exhibit, allowing people to make specific commitments to combat climate inaction and visualize their collective impact.
Uses the Gatsby Starter Default as the starting point.
- Install gatsby:
yarn global add gatsby-cli - Install Firebase tools:
yarn global add firebase-tools - Clone this repo and cd inside.
- Install the cloud functions packages
cd functions/ yarn install - Install the frontend packages
cd frontend/ yarn install - Create frontend environment files
.env.stagingand.env.productionwith values for the following vars:CIVIC_API_KEY= FIREBASE_API_KEY= FIREBASE_AUTH_DOMAIN= FIREBASE_DATABASE_URL= FIREBASE_PROJECT_ID= FIREBASE_STORAGE_BUCKET= FIREBASE_MESSAGING_SENDER_ID= FIREBASE_APP_ID=
# Start the firebase emulators in one shell
firebase emulators:start
# Run the local frontend server in another
cd frontend/
yarn run developTo staging:
cd frontend/
yarn run deploy-stagingTo production
cd frontend/
yarn run deploy-productionDeploy only functions:
# Staging
firebase use staging
firebase deploy --only functions
# Production
firebase use production
firebase deploy --only functions