Step 2. Deploy React app builder

Deployment

In this step you have to run the command below in the terminal where your builder is opened.

npm run build

This will compile your code, and make a build folder that is ready for uploading on Firebase or on your own HTTP server.

Deploy on Firebase.

Go in your firebase console, and then go in Hosting. Click on Get started. Next, run the command to install the Firebase tools globally in your system.

npm install -g firebase-tools

Next, run the command to login in Firebase (Instructions on firebase console).

firebase login

In your project root, run the command to initialize your firebase project.

firebase init

In the options, select "Hosting" using the Space button on your keyboard. The selection should become green. Next select your project. For public folder enter build. On Configure as a single-page app enter y. Enter N to not overwrite any file. Next run

firebase deploy

and enjoy your site running on supper fast google environment. The console will tell you the link to your admin.

G6nQ9WIIc7CIlch7MCy7WlYdFNJZoYewMNDh604F.png