This project was bootstrapped with Create React App.
- Install firebase tools
npm -g install firebase-tools
- Build project
npm run build
- Init firebase
firebase init
-
Select
Hosting: Configure files for Firebase Hosting
-
Select
Use an existing project
-
Other questions:
What do you want to use as your public directory? build
Configure as a single-page app (rewrite all urls to /index.html)? Yes
Set up automatic builds and deploys with GitHub? No
File build/index.html already exists. Overwrite? No
.firebaserc
andfirebase.json
will be generated
- deploy app
firebase deploy