Functions
- Create a config.js file on
util
folder with firebase configurations
module.exports = {
apiKey: "apiKey",
authDomain: "project.firebaseapp.com",
databaseURL: "https://project.firebaseio.com",
projectId: "project",
storageBucket: "project.appspot.com",
messagingSenderId: "882928",
appId: "appId",
measurementId: "qadsd1"
};
- Install NodeJs dependencies
$ npm install
- Initiate Firebase Functions
$ firebase init
- Start api locally
$ firebase serve
View
- Install ReactJs dependencies
$ npm install
export GOOGLE_APPLICATION_CREDENTIALS="/Users/raphaellins/developer/overt-lite/functions/overtlite-credentials.json"