How to deploy/Host React project on firebase
Abod Micheal (he/him)
Posted on September 15, 2020
$ npm install -g firebase-tools
$ firebase login
$ firebase init
◯ Database: Deploy Firebase Realtime Database Rules
◯ Firestore: Deploy rules and create indexes for Firestore
◯ Functions: Configure and deploy Cloud Functions
❯◯ Hosting: Configure and deploy Firebase Hosting sites
(use space to select)
◯ Storage: Deploy Cloud Storage security rules
? Select a default Firebase project for this directory:
-> react-project-abod (react-project)
i Using project react-project (react-project)
? What do you want to use as your public directory? build
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? File public/index.html already exists. Overwrite? No
$ npm run build
$ firebase deploy
💖 💪 🙅 🚩
Abod Micheal (he/him)
Posted on September 15, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.