Deploy backend
Let's setup and deploy our cloud functions
Activate functions service on Firebase
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
Set up a project
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]"
}
}Deploy cloud functions
At first, let's setup firebase CLI as mentioned in official docs:
$ npm install -g firebase-toolsThen, move to functions folder:
$ cd functionsAnd make deploy:
$ firebase deploy --only functionsAdding host name for calling functions from front-end
Go to functions in Firebase and copy host name from function url.

Then, paste it into to hostname const:
src/config/config.ts
Last updated
Was this helpful?