git clone the repository into local
git clone https://github.com/duncanchiu409/functions.git
Install npm packages locally on node_modules
npm i
Install firebase globally on node_modules
npm i -g firebase
Login into your google firebase account
firebase login
Follow the Firebase authentication instruction (Noted that the project should follow your cloud project setup instead of mine)
Change the .firebaserc configuration
{
"projects": {
"default": "YOUR_PROJECT_NAME_ID"
}
}
Run the server on firebase Emulator
npm run serve
If everything works fine, you can now deploy it on Firebase Functions
npm run deploy