In this chapter, we're going to cover the following recipes:
- Deploying our application to Firebase
- Customizing the Firebase hosting environment
In this chapter, we're going to cover the following recipes:
After everything we've done, testing our application live and letting the world see how awesome it is is a must. Firebase has got us covered with an awesome static hosting service that will let us exploit something that is usually a pain in the neck, especially when we're trying to deploy our services and application, and trust me it's a pain to think about everything from security to maintainability. So, here are some of the perks you get when incorporating your application with Firebase hosting.
In order to get started with Firebase hosting, we need to download some dependencies first. These include the CLI itself, so let's see how we can download and install it before doing any kind of operation.
Head directly to your terminal of choice if you're on macOS/Linux, or cmd if you're on Windows, and type the following command:
~> npm install -g firebase-tools
Now, since we've successfully deployed our Firebase application, it's normal to change some default values and add another value in order to get the best experience out of it. Firebase offers just that in order to have the best experience while developing and deploying your application.
Let us now learn how to customize Firebase using URL redirect.
Sometimes, we just want to change some URLs for some reasons, and typically sometimes we want to perform URL redirecting in order to maximise our user experience and prevent broken routes. So let's see how we can achieve that: