Run:
npm install -g firebase-tools
firebase login
cd functions/
npm install
Code is in functions/src
After making changes, just run:
firebase deploy --only functions
It is recommended to setup an API key. To do this, run:
firebase functions:config:set tab_api.client_key='YOUR_CURRENT_API_KEY'
To generate a new API key, run:
node -e "console.log(require('crypto').randomBytes(20).toString('hex'))"