How to run java script code locally in cloud function
Hi friends, we will see here how to run Js code locally in cloud fun these days I am using firebase cloud function and in the fun I am using java script then let’s start .
1 . Open your editor
2. Write your js codes
3. open terminal(if your editor has terminal then open it other wise open command prompt )
4. Go to your js folder where you have written the js codes
5. Run this command
npm run-skript lint
6. And then run this command
firebase serve
or firebase serve — only functions
Than you friends, Have a good day and night….