Firebase functions for testing purpose
Steps to build and deploy :
-
Create your firebase project from https://console.firebase.google.com
-
Update config.json file present in root directory of this project with the keys from your firebase project. If you dont want to use config file locally you need to set config variables firebase itself.
-
Update your firebase project id in .firebaserc
-
Go inside functions folder and Run "npm install"
-
Install firebase CLI (sudo npm install -g firebase-tools)
-
In command line from the root of this project type
$firebase login
It will open a browser and ask you to enter the google credentials and permissions. Give the personal gmail account using which you have created the firebase project earlier.
- Now list the projects that are associated with the account by using the following command
$firebase list
8)Use the newly created project to push the code
$firebase use "project id"
- Deploy your code
$firebase deploy