$ 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
![Cover image for How to deploy/Host React project on firebase](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmriw8dvsyqb42a82pdn3.png)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
Could you use the markdown code block fencing? It makes it easier to read and it colors syntax