The final step is to deploy our weather app to a server that supports HTTPS. If you don’t already have one, the absolute easiest (and free) approach is to use the static content hosting from Firebase. It’s super easy to use, serves content over HTTPS and is backed by a global CDN.
There’s one more thing that you should consider, minifying the key styles and inlining them directly into index.html. Page Speed Insights recommends serving the above the fold content in the first 15k bytes of the request.
See how small you can get the initial request with everything inlined.
Further Reading: PageSpeed Insight Rules
This step requires you to have Node & NPM installed on your system. If it’s not, you can use any other hosting provider that supports HTTPS. We’ve used Firebase because it automatically redirects users from HTTP to HTTPS. If you use a different provider, be sure they’re always redirects to HTTPS.
If you’re new to Firebase, you’ll need to create your account and install some tools first.
Once your account has been created and you’ve signed in, you’re ready to deploy!
firebase login
firebase init
Further reading: Firebase Hosting Guide