Book Image

Serverless Web Applications with React and Firebase

By : Harmeet Singh, Mayur Tanna
Book Image

Serverless Web Applications with React and Firebase

By: Harmeet Singh, Mayur Tanna

Overview of this book

ReactJS is a wonderful framework for UI development. Firebase as a backend with React is a great choice as it is easy, powerful, and provides great developer experience. It removes a lot of boilerplate code from your app and allows you to focus on your app to get it out quickly to users. Firebase with React is also a good choice for Most Viable Product (MVP) development. This book provides more practical insights rather than just theoretical concepts and includes basic to advanced examples – from hello world to a real-time seat booking app and Helpdesk application This book will cover the essentials of Firebase and React.js and will take you on a fast-paced journey through building real-time applications with Firebase features such as Cloud Storage, Cloud Function, Hosting and the Realtime Database. We will learn how to secure our application by using Firebase authentication and database security rules. We will leverage the power of Redux to organize data in the front-end, since Redux attempts to make state mutations predictable by imposing certain restrictions on how and when updates can happen. Towards the end of the book you will have improved your React skills by realizing the potential of Firebase to create real-time serverless web applications.
Table of Contents (16 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Free Chapter
1
Getting Started with Firebase and React
Index

How does it work?


Firebase SDKs for Cloud Storage can be used to upload and download files directly from clients. The client is able to retry to resume the operation right where it left off, saving your user's time and bandwidth.

Under the hood, Cloud Storage stores your files in a Google Cloud Storage bucket and hence makes them accessible through both Firebase and Google Cloud. This gives you the flexibility to upload and download files from mobile clients via the Firebase SDKs, and do server-side processing, such as image thumbnail generation or video transcoding using Google Cloud Platform. As we have seen that Cloud Storage scales automatically, it can handle all types of application data, small to medium to large applications.

On the security front, the Firebase SDKs for Cloud Storage integrate seamlessly with Firebase Authentication to identify users. As we saw in Chapter 6, Firebase Security and Rules, Firebase also provides declarative rule language that lets you control access to...