GetBallot / web

Firebase backend for the Ballot app
http://www.getballot.com
Apache License 2.0
1 stars 2 forks source link
firebase

Configure Firebase

  1. Under Authentication, select sign-in method. Enable Google and Anonymous
  2. Under Database, click "Get started"

Deploy Cloud Functions

  1. Follow Firebase Cloud Functions instructions:
    • npm install -g firebase-tools
    • firebase login
    • During firebase init, don't override anything.
  2. Create functions/config.json with this:
    { "api_key": your_api_key } Generate your_api_key from Google API console, with Civic Information and Places API enabled. You may need to go through this site to set up billing for Places API: https://cloud.google.com/maps-platform/places.
  3. Inside the functions directory, run npm install.
  4. firebase deploy --only functions

More info

See DESIGN.md in the mobile repo