Deploy backend
Let's setup and deploy our cloud functions
- go to Functions in the left menu on Firebase
- then start to use it by clicking «upgrade» button and then skip modal and click «purchase»
- close modal
- click «get started»
- click «continue» in modal, click «finish» on next step in modal
Get your project id from settings of your Firebase project

Change project id in
.firebaserc
in default
property to your project name from firebase project settings:{
"projects":
{
"default": "[PASTE YOUR PROJECT ID]"
}
}
$ npm install -g firebase-tools
You'll need a Node.js environment to write functions, and you'll need the Firebase CLI to deploy functions to the Cloud Functions runtime. For installing Node.js and npm, Node Version Manager is recommended.
Then, move to functions folder:
$ cd functions
And make deploy:
$ firebase deploy --only functions
Go to functions in Firebase and copy host name from function url.

Then, paste it into to hostname const:
src/config/config.ts

Paste to value of hostName
Last modified 10mo ago