Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Firebase Cookbook

You're reading from  Firebase Cookbook

Product type Book
Published in Nov 2017
Publisher Packt
ISBN-13 9781788296335
Pages 288 pages
Edition 1st Edition
Languages
Author (1):
Houssem Yahiaoui Houssem Yahiaoui
Profile icon Houssem Yahiaoui

Table of Contents (15) Chapters

Preface 1. Firebase - Getting Started 2. Firebase Real-Time Database 3. File Management with Firebase Storage 4. Firebase Authentication 5. Securing Application Flow with Firebase Rules 6. Progressive Applications Powered by Firebase 7. Firebase Admin SDK 8. Extend Firebase with Cloud Functions 9. We’re Done, Let’s Deploy 10. Integrating Firebase with NativeScript 11. Integrating Firebase with Android/iOS Natively 12. Hack Application's Growth 13. Adding Analytics and Maximizing Earnings 14. Firebase Cloud FireStore

We’re Done, Let’s Deploy

In this chapter, we're going to cover the following recipes:

  • Deploying our application to Firebase
  • Customizing the Firebase hosting environment

Introduction

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.

  • Served with a secure connection, which means everything will be over HTTPS.
  • Fast content delivery means that your files will be hosted/sent over CDN. This also means that users from around the world will get an even faster experience, no matter where they are.
  • Rapid deployment using the Firebase CLI -we're going to see how to use it next makes the deployment...

Deploying our application to Firebase

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.

Getting ready

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
In order to use npm, the node package manager, you will need to have Node.js already installed on your development machine.

How to do it...

...

Customizing the Firebase hosting environment

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.

How to do it...

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:

  1. Head to your firebase.json file and introduce a new section within it called...
lock icon The rest of the chapter is locked
You have been reading a chapter from
Firebase Cookbook
Published in: Nov 2017 Publisher: Packt ISBN-13: 9781788296335
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}