how to start firebase server locally code example
Example 1: firebase emulators start only functions
firebase emulators:start --only functions
Example 2: firebase hosting deploy
firebase deploy
firebase emulators:start --only functions
firebase deploy