- install nodejs
- install firebase by npm install -g firebase-tools
- sign in firebase in cmd by "firebase login" command
- init firebase by "firebase init" command
- choose the option "Functions: configure and deploy cloud function"
- write your code
- deploy by firebase deploy