Deploying our application to Firebase
In order to get started with Firebase hosting, we need to download some dependencies first. These include the CLI itself, so let's see how we can download and install it before doing any kind of operation.
Getting ready
Head directly to your terminal of choice if you're on macOS/Linux, or cmd if you're on Windows, and type the following command:
~> npm install -g firebase-tools
Note
In order to use npm, the node package manager, you will need to have Node.js already installed on your development machine.
How to do it...
- Now, in the preceding command, we installed the firebase CLI utility globally on our development machine. This means that you can call it from any location within your system.
- After installing the utility for the first time, you will be required to log in. In order to log in to your Firebase account, simply type in the following command:
~> firebase login
- After executing it, you will get the following result:

Figure 1: Logging on...