Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Serverless Web Applications with React and Firebase
Serverless Web Applications with React and Firebase

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

Arrow left icon
Profile Icon Singh Profile Icon Tanna
Arrow right icon
NZ$35.99 NZ$51.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.5 (4 Ratings)
eBook Apr 2018 284 pages 1st Edition
eBook
NZ$35.99 NZ$51.99
Paperback
NZ$64.99
Subscription
Free Trial
Arrow left icon
Profile Icon Singh Profile Icon Tanna
Arrow right icon
NZ$35.99 NZ$51.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.5 (4 Ratings)
eBook Apr 2018 284 pages 1st Edition
eBook
NZ$35.99 NZ$51.99
Paperback
NZ$64.99
Subscription
Free Trial
eBook
NZ$35.99 NZ$51.99
Paperback
NZ$64.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Serverless Web Applications with React and Firebase

Integrate React App with Firebase

In Chapter 1, Getting Started with Firebase and React, we saw how we can integrate Firebase with JavaScript and created our first sample application, which gave us a brief idea of how Firebase works. Now that you've completed your first web app using JavaScript and Firebase, we'll build the helpdesk application with React and Firebase.

We will start off by setting up the React environment, and then we will take a quick look at the JSX and React component methods. We'll also see how we can create form components in React using JSX and submit these form values in the Firebase Realtime Database. 

Here's a list of the points that we'll focus on this chapter:

  • React Environment Setup
  • Introduction of JSX and React Bootstrap
  • Creating a Form With JSX
  • Firebase Integration With React
  • Save and Read the data from Realtime Database...

Setting up the environment

First, we need to create a folder structure similar to our Hello World app, which we made in Chapter 1, Getting Started with Firebase and React. The following screenshot describes the folder structure:

When we start making an application with ReactJS, we need to do some setup, which just involves an HTML page and the reactjs library. Once we have finished creating the folder structure, we need to install both our frameworks: ReactJS and Firebase. It's as simple as including JavaScript and CSS files in your page. We can do this via a Content Delivery Network (CDN), such as Google or Microsoft, but we will fetch the files manually in our application so that we don't have to be dependent on the internet and can work offline.

Installing React...

Summary

In this chapter, we saw how JSX plays an important role in making custom components in React as well as making them very simple to visualize, understand, and write. We also saw how props and state play an important role in making components interactive as well as in DOM interaction to get the value from form fields. With the help of refs, we can call any public method and send a message to our particular child instance.

Also, we explored the React-Bootstrap components by creating an Add Ticket form, which works well on all expected devices as well as on desktop browsers.

In addition, we saw how easy it is to use Firebase Realtime Database with a ReactJS application. With just a few lines of code, we can save the data to the Realtime Database and retrieve the list of tickets from the database in Realtime to make our application Realtime.

In the next chapter, we will do...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • 1) A practical guide covering the full stack for web development with React 16 and Firebase
  • 2) Leverage the power of Firebase Cloud Storage, messaging, functions, OAuth, and database security to develop serverless web applications.
  • 3) Develop high-performance applications without the hassle of setting up complex web infrastructure.

Description

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.

Who is this book for?

This book is for JavaScript developers who have some previous knowledge of React and want to develop serverless, full-stack applications but without the hassle of setting up a complex infrastructure.

What you will learn

  • •Install powerful React.js and Firebase tools to make development much more efficient
  • •Create React components with Firebase to save and retrieve the data in real-time
  • •Use Firebase Authentication to make your React user interface secure
  • •Develop React and Firebase applications with Redux integration
  • •Firebase database security rules
  • •Firebase Cloud Storage Integration to upload and store data on the cloud
  • •Create a complete real-time application with React and firebase
  • •Using Firebase Cloud messaging and Cloud functions with React
  • •Firebase Cloud Storage integration with React

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 10, 2018
Length: 284 pages
Edition : 1st
Language : English
ISBN-13 : 9781788478601
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Apr 10, 2018
Length: 284 pages
Edition : 1st
Language : English
ISBN-13 : 9781788478601
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total NZ$ 217.97
Building Serverless Applications with Python
NZ$80.99
Serverless Web Applications with React and Firebase
NZ$64.99
Serverless Design Patterns and Best Practices
NZ$71.99
Total NZ$ 217.97 Stars icon

Table of Contents

10 Chapters
Getting Started with Firebase and React Chevron down icon Chevron up icon
Integrate React App with Firebase Chevron down icon Chevron up icon
Authentication with Firebase Chevron down icon Chevron up icon
Connecting React to Redux and Firebase Chevron down icon Chevron up icon
User Profile and Access Management Chevron down icon Chevron up icon
Firebase Security and Rules Chevron down icon Chevron up icon
Using Firebase Cloud Messaging and Cloud Functions with React Chevron down icon Chevron up icon
Firebase Cloud Storage Chevron down icon Chevron up icon
Best Practices Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.5
(4 Ratings)
5 star 25%
4 star 50%
3 star 0%
2 star 0%
1 star 25%
bishok limbu Mar 08, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is great for beginners who want to understand more about web applications. I highly recommend this book !!!
Amazon Verified review Amazon
Nayan jyoti talukdar Mar 04, 2021
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Very simple written. Easy to understand for the beginners and intermediate level developers.
Amazon Verified review Amazon
Shruthi J Jan 27, 2022
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This book helped me understand the basics of both Firebase and React.js and also helped me with building all the real time apps. Definetly recommend it to all the javascript developers out there who have knowledge around React.
Amazon Verified review Amazon
I. Pedersen Jul 13, 2018
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Very poorly written. A complete waste of time.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.