Get Free Firebase Web Hosting

How to get Firebase Hosting For Free it Easy, Fast, Secure

Get Free Firebase Web Hosting

If you're a developer then you really need a web hosting for host you website or your portfilo but for hosting you need to pay a lot but if you want free hosting this is only for you. talk about free hosting some company like 000webhost provide a free hosting but they show ads and it too slow so it not good for you so here we bring a new post for you were you can get free google firebase hosting for lifetime and it soo fast, easy and its completly free.

 

What is Firebase Hosting?


Firebase hosting is a hosting server provide by Google it self. Which provide a static web content to the users in fast , free and easy way.

Why Firebase Hosting ?


There are lost of company provides free hosting like 000webhosting but we cant trust on it and they are not so fast and also they show ads on it and also some company cost you a lot for hosting a website on their servers. and also you have to pay extra for getting an SSL certificate to conver you website to a secure one with https
So Here FIrebase Hosting Comes. Firebase Hosting is free So it won't charge you anymore and the best part of firebase hosting is by default it provide you free SSL certificate and offers an impressive speed across many geographic locations without the nedd for a separate CDN on top

 

Requirements


Google Account:


I believe you might already have a Gmail account, which is enough. If not create one.
Firebase-CLI:

Download Link https://firebase.google.com/docs/cli/


Before you can install the Firebase CLI, you will need to install Node.js on your machine.
Once you’ve installed NodeJs, you can install the Firebase CLI using npm (the Node Package Manager) by running the following command:

npm install -g firebase-tools
 

Domain:


This is optional. There are various domain name providers in the world. Additionally, you can buy one from Godaddy.
Lets get our hands dirty

 

Step 1: Creating firebase project

Go to firebase and sign in with your Google account

then create new project, enter your project name (demo-firebase in my case)

Step 2: Firebase Login

Now come back to the command line and go to your project folder


 open Firebase CLI and follow this command: 

cd firebase-demo

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

firebase login

 

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

After that

Step 3: Initializing project

To initialize firebase project you have to enter the command

firebase init

Then you have to select Hosting feature and click enter

Then it will ask you to select firebase project, select project which we created in step 1 (demo-firebase in my case)

Then it will ask you enter the main folder in which all your website assets are present. (public folder in my case)

It will ask you whether your application is single page or not, for now enter y

It will try to override your index.html file, to avoid doing that enter n

Step 4: Checking setup (optional )

If everything goes right you can check you website locally by running command

firebase serve

 

It will run you website locally on http://localhost:5000 by default.

Step 5: Deployment

For deployment of your project you have to run command

firebase deploy

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