Work with Firebase Cloud Functions


* Installing Firebase CLI
$ npm install -g firebase-tools

* Initiate A New FirebAse Cloud Functions Project and then login
$ firebase login

* Now you’re ready to create a new Firebase Cloud Functions project. First create a new empty project folder
$ mkdir fb-functions

* Then change into the newly created folder
$ cd fb-functions

* Execute the following command
$ firebase init functions

* You’re being asked to select the Firebase project you would like to use for the Firebase Cloud Functions project. You can also select the entry [create a new project] if you would like to add a new Firebase project to your account:

* The Firebase CloudFunctions project has been setup successfully initiated.

# To deploy our project to Firebase
$ firebase deploy –only functions

# To Test in local emulator our project
$ firebase serve –only functions


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s