Skip to content

domoench/climate-commitments

Repository files navigation

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.

Developing

Uses the Gatsby Starter Default as the starting point.

Resources

Deploying to Firebase

Develop locally

Installation

  1. Install gatsby: yarn global add gatsby-cli
  2. Install Firebase tools: yarn global add firebase-tools
  3. Clone this repo and cd inside.
  4. Install the cloud functions packages
    cd functions/
    yarn install
    
  5. Install the frontend packages
    cd frontend/
    yarn install
    
  6. Create frontend environment files .env.staging and .env.production with 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=
    

Running the dev frontend + firebase emulator backend

# Start the firebase emulators in one shell
firebase emulators:start

# Run the local frontend server in another
cd frontend/
yarn run develop

Deploying

To staging:

cd frontend/
yarn run deploy-staging

To production

cd frontend/
yarn run deploy-production

Deploy only functions:

# Staging
firebase use staging
firebase deploy --only functions

# Production
firebase use production
firebase deploy --only functions

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors