Hosting Your Website for free using Firebase.

Samuel Okediji
Jun 11 · 3 min read

Firebase happens to be one of the most useful software development resource out there. It allows developers build either Mobile or Web applications providing database and hosting capability at zero cost.

Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money while you plan to scale your app.

Below are step-wise procedure in hosting your application using Firebase.

Hosting with firebase comes with an option of a free sub-domain that has its directory looking like this: "Your domain name."firebaseapp.com

  1. STEP ONE : Run the following command

2. STEP TWO: Proceed to Firebase and login with your Google account

Click on the add new project button to create your project name.

Fill in your project name accordingly. As you can see mine is titled cercuitapp.

Proceed by accepting controller T&C, then click on the create project button.

The project will be created within 4 seconds. Proceed to your CLI then punch in the following commands to go into your project folder.

Now we have to login into firebase from command line. Type in the following command

It will take you to the sign-in page in the browser, once you’ve successfully logged in it will show you something like this.

view on your browser

3. STEP THREE: In order to initialize firebase on your working directory you have to go with the command below:

T

The next phase will alert you to select Hosting feature and then you click enter.

The following steps will prompt you to authenticate access. Click y to accept Hosting setup.

This will try to override your index.html file in order to avoid doing that enter n.

4. STEP FOUR: Now we have to check setup if it works perfectly.

This command will allow it run your website locally on by default.

5. STEP FIVE: In order to deploy your app successfully. Run the following command.

After running the command you should be able to see the following output.

Congratulations! your website is now up and running, you can check by going to url which is provided in the command line.

Samuel Okediji

Written by

Back-end web developer| Linux fanatic |Ensuring Automation on the GCP| Pro-Distributed Systems| Tourist