From the course: React: Cloud-Powered Apps with Firebase

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Firebase Hosting setup

Firebase Hosting setup

From the course: React: Cloud-Powered Apps with Firebase

Start my 1-month free trial

Firebase Hosting setup

- [Narrator] Now that we have used Authentication to manage users, Cloud Firestore to store data, Cloud Storage to store user files and Cloud Functions for serverless backends, it's time to deploy our application, and we can do so with the Firebase Hosting. We first need to ensure that we can build our React application for production. Create React App has already created a build script for us, so we can simply run NPM , run build and create React App, we'll go ahead and create an optimized production build for us. Looking at our project files, we see that there's a new build folder here with the optimized production build. And now we can set up Firebase Hosting. In your terminal go ahead and run Firebase in it. We will use the arrow keys, hit the space bar to choose hosting and then click enter. Our public directory will be build. We want to configure as a single page app and we don't want to override the index HTML…

Contents