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

You're reading from   Serverless Web Applications with React and Firebase Develop real-time applications for web and mobile platforms

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781788477413
Length 284 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Harmeet Singh Harmeet Singh
Author Profile Icon Harmeet Singh
Harmeet Singh
Mayur Tanna Mayur Tanna
Author Profile Icon Mayur Tanna
Mayur Tanna
Arrow right icon
View More author details
Toc

React setup


To set up our development environment, the first step will be the React setup. There are different options available to install React. If you already have an existing app and want to add React, you can install it using a package manager such as npm using this command:

npm init
npm install --save react react-dom

However, if you are starting a new project, the easiest way to get started is with the React Starter Kit. Just go to the Command Prompt and execute the following command to install the React Starter kit:

npminstall -g create-react-app

This command will install and set up the local development environment by downloading all the required dependencies. There are a number of benefits to have your development environment with node, such as optimized production builds, installing libraries using simple npm or yarn commands, and such.

Once you have it installed, you can create your first app using the given command:

create-react-app seat-booking

It will create a frontend application...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime