From the course: React: Cloud-Powered Apps with Firebase
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Deploying your React app
From the course: React: Cloud-Powered Apps with Firebase
Deploying your React app
- [Instructor] And now let's deploy the application that you have been working so hard on. Let's write a new npm script. We will call this "deploy:hosting", and this will run "firebase deploy --only hosting". We'll also write another npm script, simply "deploy" and we can use "firebase deploy," without any arguments. When using this command without any flags, it will deploy all of the Firebase services that you have configured in your application. For the storage and cloud store services, this will deploy the security rules. When hosting is enabled, this will deploy your app. And finally, this will prepare, package and upload your cloud functions. Keep in mind, that running this command may take a few minutes on your machine. Let's go ahead and run npm deploy. Once that is done, Firebase will give you the URL of your new application. Let's go ahead and visit that. And we have our application live at this URL. I will go…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.