Hello everyone!, in this tutorial we are going to see about how to use firebase for host your static website!.
This tutorial assumes that you've already have a project in firebase. Go to your root of the project and run this command to initialize the firebase project.
firebase init hosting
The index.html must be in the root folder of your project.
Press enter to select the default options
visit firebase docs for more information. firebase-hosting-quickstart.
The firebase cli might redirect to login if you have'nt logged in to your firebase cli already
This will initialize your firebase project, you may have to select the project if you have multiple project.
now that you have initialized your project now we can deploy it to firebase
firebase deploy --only
This command will upload your project to firebase storage bucket and give an publicly accessible url
Thanks for reading!, bye