Thursday, 19 May 2022

Run Firebase functions locally

Prerequisite :

- firebase admin must be set up on your local machine

- your cloud functions must be deployed.


Steps:

1) open cmd.exe type : firebase emulators:start

2) in another cmd.exe type: firebase functions:shell

3) Now type any cloud function as if you calling any function like : hello() , add(2,3) etc.


Reference: 

https://www.youtube.com/watch?v=J0j1uhelY7M

https://firebase.google.com/docs/functions/local-shell

https://firebase.google.com/docs/functions/write-firebase-functions

No comments:

Post a Comment