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

eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781788477413
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Apr 10, 2018
Length: 284 pages
Edition : 1st
Language : English
ISBN-13 : 9781788477413
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 $5 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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 147.97
Building Serverless Applications with Python
$54.99
Serverless Web Applications with React and Firebase
$43.99
Serverless Design Patterns and Best Practices
$48.99
Total $ 147.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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.