Introduction to Firebase Hosting

Get a brief introduction to Firebase Hosting.

Firebase Hosting is a production-grade web content hosting solution provided by Firebase. It provides a fast, reliable, and secure way to host our applications’ static and dynamic content as well as microservices. With Firebase Hosting, we can deploy web applications to a global Content Delivery Network (CDN) with a single CLI command.

Firebase provides subdomains with all Firebase projects at no cost. Developers can also set up custom domains for their Firebase-hosted sites. All applications deployed with Firebase Hosting are automatically provisioned with SSL certificates, making sure that the content is always delivered securely.

Implementation

To initialize Firebase Hosting on a project, we must run the Firebase CLI’s hosting initialization command on a terminal. This command is similar to the Cloud Functions initialization command we discussed earlier.

Perform the following steps to initialize Firebase Hosting:

  1. Run the command below in the root of the project’s directory. This opens up a dialogue that asks us some questions required to initialize Firebase Hosting in a project:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy