Ensure your working directory is functions
, not the root directory for all steps.
-
Prerequisites
- Node.JS, version
=12.x
- NPM, version
>=6.x
- Firebase CLI
- Node.JS, version
-
Install Dependencies
npm install
-
Get Private Key
Follow the steps in the Firebase documentation to obtain a new private key. Paste the private key into
functions/src/service-account.json
. -
Get Runtime Config
Ensure you are logged in to the Firebase CLI.
firebase functions:config:get >.runtimeconfig.json
-
Start local development
npm run watch