Member-only story

How to deploy a Web App with Firebase Hosting

Ankit Maheshwari
2 min readDec 24, 2019

--

Release your Project with Firebase Hosting. To improve performance Create-Production-Build (If you are building Angular/PWA/Ionic App)

My articles are open for everyone; non-member readers can read the article by clicking this Friend link.

Before start..

We need to create and setup a Firebase project.
Click here👆 for Steps to setup Firebase (Create New Database in Firebase Firestore by web.)

Okay, I assume you have followed each step from above link↑ to setup a Firebase Project.

Deploying to Firebase becomes easy after correctly setting up a Firebase project.

We should always prepare production build before deploying to Firebase.
Let’s prepare production build to improve performance.
To do so follow the instruction👇👇

If you are building Angular App, simply run in your command-prompt/terminal:

ng build --prod

You may need to put ‘sudo’ at the beginning of this command to execute it as administrator. Or if you are a Windows user simply open up your command-prompt as administrator.

--

--

Ankit Maheshwari
Ankit Maheshwari

No responses yet