Work with Firebase Cloud Functions

#Source
https://medium.com/codingthesmartway-com-blog/introduction-to-firebase-cloud-functions-c220613f0ef

* 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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

w

Connecting to %s