- Under Authentication, select sign-in method. Enable Google and Anonymous
- Under Database, click "Get started"
- Follow Firebase Cloud Functions instructions:
npm install -g firebase-tools
firebase login
- During
firebase init
, don't override anything.
- 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. - Inside the
functions
directory, runnpm install
. firebase deploy --only functions