This post is about Hosting a static web site (React / Angular) using Firebase

Few easy steps then you will be on the run..!


Install Firebase CLI - npm install -g firebase-tools

login - firebase login

initialize project -firebase init

use an existing project or create a new one

public directory - build (This is the folder that production build in react and angular [npm run build])

configure as a single page app? - y (Yes)

file build/index.html already exists. Overwrite? - N (NO)

initialize completed...!!!

firebase.json shows sources and destinations

next run -> firebase deploy

Get the Hosting URL

Congratulations...!!! You have successfully hosted your web app