/firebase-tutorials

How to deploy Firebase hosting site?

Deploy your site with Firebase Hosting in 6 easy steps: install the CLI, log in, initialize your project, add files, deploy, and test your live site.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to deploy Firebase hosting site?

 

Step 1: Install Firebase CLI

 

First, you need to install the Firebase CLI if it isn't already installed. Make sure you have Node.js and npm installed on your machine. Then, run the following command:


npm install -g firebase-tools

 

Step 2: Log In to Firebase

 

To use Firebase via the command line, you need to log in to your Firebase account:


firebase login

This command will open a browser window prompting you to log in to your Google account.

 

Step 3: Initialize Your Project

 

Navigate to the root of your local project directory and run the following command to initialize Firebase Hosting:


firebase init hosting

During initialization, you will be prompted to select an existing Firebase project or create a new one, choose the public directory that contains your static files, configure as a single-page app if necessary, and set up automatic builds and deploys with GitHub if needed.

 

Step 4: Add Your Static Files

 

Ensure your static files (HTML, CSS, JavaScript, assets) are located in the public directory specified during the Firebase initialization process. This is where Firebase will look for files to serve to users.

 

Step 5: Deploy to Firebase Hosting

 

Once everything is set up and you have verified that your files are correctly located in the public directory, deploy your site with the following command:


firebase deploy

After deployment, you will receive a unique URL that you can use to access and share your newly deployed site.

 

Step 6: Test Your Deployment

 

Visit the URL provided after the deployment to ensure your site is live and working as expected. Test various functionalities to ensure everything is in order. If you run into issues, you can check the deployment logs for debugging.

 

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022