You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.
note: It's recommended to use the latest versions of node and npm to make es6 syntax and the latest node features available to your environment; typescript will compile to commonjs
Get added to the Join firebase project using the email address you'd like to login to firebase with
Once added to the project: Generate a new ServiceAccountKey.json file
go to console.firebase.google.com
click the gear next to project overview and select: Users and permissions
select: Service accounts from the menu and select Generate new private key
rename the downloaded filename to ServiceAccountKey.json and place it in the functions directory of the project /dwelling-db/functions/ServiceAccountKey.json
cd into /dwellingly-db/functions
$ npm install
$ firebase login
Follow login instructions and login using the email you provided earlier. If asked to overwrite anything, select no
$ npm run build:dev to generate the lib folder to be served
$ npm run serve to start the server on localhost:7777, must be run from /dwellingly-db/functions
OPTIONAL: $ npm run server for a verbose debugging script when starting the server
Deployment
To deploy functions to firebase:
In a terminal, type npm run build:prod (which sets Node environment to production)
Type npm run deploy
As long as you're logged into Firebase, it should deploy the functions