Only users who pass a valid Firebase ID token as a Bearer token in the
Authorization
header of the HTTP request are authorized to use the API.
- Create a Firebase Project using the Firebase Console.
- Enable the Google Provider in the Auth section.
- You must have the Firebase CLI installed. If you don't have it install it with
npm install -g firebase-tools
and then configure it withfirebase login
. - Configure the CLI locally by using
firebase use --add
and select your project in the list. - Install dependencies locally by running:
cd functions; npm install; cd -
To test locally do:
- Start serving your project locally using
firebase serve --only functions
To deploy and test on prod do:
- Deploy your project using
firebase deploy