from firebase to your local servers code example
Example 1: firebase emulate functions
firebase emulators:start --only functions
Example 2: run function project with firebase
firebase emulators:start
firebase emulators:start --only functions
firebase emulators:start