Install Firebase tools for Firebase Cloud Function.
$ npm install -g [email protected]
$ firebase login
$ firebase use <firebase project id>
$ cd functions
$ npm install
Download serviceAccountKey.json from Firebase
- Go to Projet Settings
- Go to Service Accounts tab
- Click Generate new private key
- Download and place the file in functions folder
- Rename the file to serviceAccountKey.json
$ cd functions
$ npm run deploy