Serverless Web Applications with React and Firebase : Develop real-time applications for web and mobile platforms.

React and Firebase are just the right match to build real-time applications. This book covers essentials for React, Redux, and Firebase. You'll learn to design, create and maintain professional apps, as well as share practical insights that include basic to advanced examples; from hello world t...

Full description

Saved in:
Bibliographic Details
Main Author: Tanna, Mayur
Other Authors: Singh, Harmeet
Format: eBook
Language:English
Published: Birmingham : Packt Publishing, 2018.
Subjects:
Online Access:Click for online access
Table of Contents:
  • Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Getting Started with Firebase and React; React; Component lifecycle; Methods info; The constructor() method; The render() method; The componentWillMount() method; The componentDidMount() method; The componentWillReceiveProps() method; The shouldComponentUpdate() method; The componentWillUpdate() method; The componentDidUpdate() method; The componentWillUnmount() method; The componentDidCatch() method; Firebase; Realtime Database; Database rules; Backups; Usage; Cloud Firestore.
  • Security rulesDifference between Realtime Database and Cloud Firestore; Data model; Real-time and offline support; Querying; Reliability and performance; Scalability; Security; Crash reporting; Authentication; FirebaseUI authentication for web; Cloud Functions; How does it work?; Cloud Storage; Hosting; Test lab for Android; Performance Monitoring; Google Analytics; Cloud Messaging; Dynamic Links; Remote config; Invites; App indexing; AdMob; AdWords; Getting started with Firebase; Firebase events; value; child_added; child_changed; child_removed; child_moved; Summary.
  • Chapter 2: Integrate React App with FirebaseSetting up the environment; Installing React; Using React; React components; What is JSX in React?; Advantages of using JSX in React; How to make your code neat and clean; React Form with JSX; Using React-Bootstrap; Add Ticket Form with React-Bootstrap; Firebase with React; Props and state; The Ref attribute; Summary; Chapter 3: Authentication with Firebase; React and Firebase setup with Node. Js; Firebase configuration for authentication; Authentication with Facebook; Creating a login form with React for authentication; Authentication with Facebook.
  • Authentication with GoogleHandling account exists errors; Managing the Login across Refresh; Authentication with email and password; Supported types of Auth state persistence; Summary; Chapter 4: Connecting React to Redux and Firebase; React setup; Integrating Firebase Realtime Database; What is Redux?; Presentational and Container components; Basics of Redux; Actions; Action creators; Reducers; Store; Data flow; Advanced topics in Redux; Seat booking with Redux; Summary; Chapter 5: User Profile and Access Management; Setting up Firebase Admin SDK; Firebase CLI; Installation.
  • Firebase Admin IntegrationUsing the Firebase Admin Auth API with React; Initializing the Admin SDK; Creating and verifying custom token; Custom claims for admin access and security rules; Adding custom claim with Admin SDK; Verifying custom claim with Admin SDK sending the app; How data is structured in a JSON tree; Summary; Chapter 6: Firebase Security and Rules; Security risks and prevention; How secure is your Firebase?; Realtime Database Rules Overview; Authentication; Authorization; Data validation; Rule definition and structure; Query-based rules; Data indexing; Backups; Setup.