Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Firebase for your App?

Firebase for your App?

This is from my presentation that I gave at MADMeetup on 17th June 2017.

Nikhil Thakkar

June 17, 2017
Tweet

Other Decks in Technology

Transcript

  1. Introduction • Firebase as a company founded in 2011 •

    Initial product was Realtime database released in April 2012 • Acquired by Google in 2014 • Since then... Source: https://en.wikipedia.org/wiki/
  2. Authentication • Provides authentication from Google, Facebook, Twitter, Github, Email

    & password out of the box (most recently phone numbers) • Option to integrate with other OAuth providers like Instagram • Integrates tightly with other Firebase products like Realtime Database, Storage etc. • Easy integration using FirebaseUI library
  3. Realtime Database • Primary product of Firebase • Cloud hosted

    NoSQL JSON database • Two way near-realtime sync out of the box • Mobile First strategy • Accessible from client devices
  4. How to structure your data? Thumb Rules: 1. Avoid nesting

    data 2. Flat hierarchy 3. Duplicate data if needed 4. Match data structure to UI 5. Think scalability
  5. How to secure your data? • Using Security Rules •

    Structure of rules should follow the structure of data • Types of security rules - .read, .write, .validate • Predefined Variables - now, root, data, newData, auth, $ placeholder variables • Combine these and you can have powerful data security rules that’s difficult to break into
  6. Cloud Functions (Beta) • Serverless Infrastructure • Node.js runtime environment

    • Automatic up and down scaling • Event driven or invoked directly over HTTP/S • ENV configuration
  7. Cloud Storage (Beta) • Object storage service • Uploading user

    generated • Strong user-based security • Automatic upscaling • Network Resiliency
  8. References • http://bit.ly/2tcqD7Q - Jacob Wenger - Security Rules •

    http://bit.ly/2ssCthq - David East - NoSQL for SQL Devs • http://bit.ly/2tciLDA - Data Modeling • http://bit.ly/2swT4AB - Database Security Rules API • http://bit.ly/2rmPJjZ - Instagram Auth in Web • Wanna know how Firebase initializes itself even if you don’t pass Context. Check here http://bit.ly/2hi0lhf.