Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hybrid Mobile Development with Ionic

You're reading from   Hybrid Mobile Development with Ionic Building highly interactive mobile apps

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781785286056
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Gaurav Saini Gaurav Saini
Author Profile Icon Gaurav Saini
Gaurav Saini
Arrow right icon
View More author details
Toc

CRUD and securing data with AngularFire2

We now have covered auth-related code and set up the building block for our TasteBite application. Next, we will look into Firebase Realtime Database, which is a NoSQL cloud database. Data is stored as JSON and synchronized in real time using web-sockets. The Firebase database persists to the disk, which gives our application offline support also. We will be using here two objects, foodItems and rateItems, where foodItems will have details about the food dish and rateItems is a nested object that contains ratings and reviews for each dish + city combination:

As you can see how we have organized the foodItem data with respect to userid so we can differentiate user-related data. We can traverse to the personalFavourite and then to user data clicks on the dashboard. We can access any of the child nodes in the data. We can visualize the data in the dashboard; also Firebase team...

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime