Leanpub Header

Skip to main content

The Angular Firebase Survival Guide

Build Angular Apps on a Solid Foundation with Firebase

Build Angular Apps on a Solid Foundation with Firebase

Minimum price

$14.99

$23.99

You pay

$23.99

Author earns

$19.19
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
4,322
Readers
87
Pages
13,213Words
About

About

About the Book

Fully updated in May 2018 with updates for Angular v6 and Firebase SDK v5.

Are you ready to go beyond the basics with Angular/Firebase and launch your app into production?

The Angular Firebase Survival Guide is a non-linear toolkit with 65 code snippets (supported by videos) that solve common challenges, prevent pitfalls, and demonstrate real-world app features. This book is about producing realtime Angular applications - it's NOT about high level programming theories or low level Angular architecture concepts.

You should buy this book if you…

  • Want to build real world apps.
  • Enjoy quick problem-solution style tutorials.
  • Have basic JavaScript, HTML, and CSS skills
  • Have some Angular experience (such as the Heroes Demo on Angular.io)

By the end of the book, you will know how to authenticate users, handle realtime database streams, upload files, trigger background tasks, deploy your app, and much more.

Author

About the Author

Jeff Delaney

Jeff Delaney is a Google Developer Expert focused on building progressive web apps. He founded a successful web development consultancy in 2012 that is currently using Angular to build realtime serverless apps. He is also an expert ranked machine learning competitor on Kaggle. 

Contents

Table of Contents

Introduction

  1. Why Angular?
  2. Why Firebase?
  3. Why Angular and Firebase Together?
  4. This Book is for Developers Who…
  5. Note for Native Mobile Developers
  6. Angular Firebase Starter App
  7. Package Versions
  8. Watch the Videos
  9. Join the Angular Firebase Slack Team

The Basics

  1. 1.1 Top Ten Best Practices
  2. 1.2 Start a New App from Scratch
  3. 1.3 Separating Development and Production Environments
  4. 1.4 Importing Firebase Modules
  5. 1.5 Deployment to Firebase Hosting

Cloud Firestore

  1. 2.0 Cloud Firestore versus Realtime Database
  2. 2.1 Data Structuring
  3. Firestore Quick Start Video Lesson
  4. 2.2 Collection Retrieval
  5. What is a TypeScript interface?
  6. 2.3 Document Retrieval
  7. Inferring Documents vs. Collections
  8. 2.4 Include Document Ids with a Collection
  9. 2.5 Add a Document to Collections
  10. 2.6 Set, Update, and Delete a Document
  11. 2.7 Create References between Documents
  12. 2.8 Set a Consistent Timestamp
  13. 2.9 Use the GeoPoint Datatype
  14. 2.10 Atomic Writes
  15. 2.11 Order Collections
  16. 2.12 Limit and Offset Collections
  17. 2.13 Querying Collections with Where
  18. 2.14 Creating Indices
  19. 2.15 Backend Firestore Security Rules
  20. Firestore Rules do NOT Cascade

Realtime Database

  1. Injecting the AngularFire Database
  2. Would you rather use the Firestore database?
  3. 3.0 Migrating from AngularFire Version 4 to Version 5
  4. 3.1 Data Modeling
  5. Firebase NoSQL Data Modeling
  6. 3.2 Database Retrieval as an Object
  7. Build a Firebase CRUD App
  8. What is a TypeScript interface?
  9. 3.3 Show Object Data in HTML
  10. 3.4 Subscribe without the Async Pipe
  11. 3.5 Map Object Observables to New Values
  12. RxJS Quick Start Video Lesson
  13. 3.6 Create, Update, Delete a FirebaseObjectObservable data
  14. 3.7 Database Retrieval as a Collection
  15. RxJS Observable Naming Preferences
  16. 3.8 Viewing List Data in the Component HTML
  17. 3.9 Limiting Lists
  18. 3.10 Filter Lists by Value
  19. Never use orderByPrority
  20. 3.11 Create, Update, Delete Lists
  21. Obtain the Push Key on New Items
  22. 3.12 Catch Errors with Firebase Operations
  23. 3.13 Atomic Database Writes
  24. 3.14 Backend Database Rules
  25. Database Rules Video Lesson
  26. Common Pitfall - Cascading Rules
  27. 3.15 Backend Data Validation
  28. Difference between Write and Validate

User Authentication

  1. Injecting AngularFire Auth and Database
  2. 4.1 Getting Current User Data
  3. 4.2 OAuth Authentication
  4. OAuth Video
  5. 4.3 Anonymous Authentication
  6. Anonymous Auth Video
  7. 4.4 Email Password Authentication
  8. Full Code Example
  9. 4.5 Handle Password Reset
  10. 4.6 Catch Errors during Login
  11. 4.7 Log Users Out
  12. 4.8 Save Auth Data to the Realtime Database
  13. 4.9 Creating a User Profile
  14. 4.10 Auth Guards to Protect Routes

Firebase Cloud Storage

  1. 5.1 Creating an Upload Task
  2. File Storage DropZone
  3. Important Caveat
  4. 5.2 Handling the Upload Task
  5. 5.3 Saving Data about a file to the Realtime Database
  6. 5.4 Uploading a Single File
  7. 5.5 Delete Files
  8. 5.6 Validate Files on the Frontend
  9. 5.7 Upload Images in Base64 Format
  10. 5.8 Validating Files on the Backend

Firebase Cloud Functions

  1. 6.1 Initialize Cloud Functions in an Angular Project
  2. 6.2 Deploy Cloud Cloud Functions
  3. 6.3 Setup an HTTP Cloud Function
  4. 6.4 Setup an Auth Cloud Function
  5. 6.5 Setup a Database Cloud Function
  6. Choose the Reference Point Carefully
  7. 6.6 Setup a Firestore Cloud Function
  8. 6.7 Setup a Storage Cloud Function

Real World Combined Examples

  1. 7.1 Auth with Firestore Custom User Data
  2. 7.2 Role-based Access Control
  3. 7.3 Drag and Drop File Uploads
  4. 7.4 Firestore NoSQL Data Modeling
  5. 7.5 Server Side Rendering

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub