Install Firebase CLI -
npm install -g firebase-toolslogin - 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

0 Comments