Skip to Content
Serverless Web Applications with React and Firebase
book

Serverless Web Applications with React and Firebase

by Mayur Tanna, Harmeet Singh
April 2018
Intermediate to advanced content levelIntermediate to advanced
284 pages
6h 43m
English
Packt Publishing
Content preview from Serverless Web Applications with React and Firebase

Deploying your site

You will need to install the Firebase CLI to deploy your static web app.

The Firebase CLI can be installed with a single command:

npm install -g firebase-tools

Now, let's deploy our HelpDesk application on cloud. We have two projects for HelpDesk: react app (a project called code) and server app (a project called node). Let's first host or deploy our client-side react app on Firebase Hosting.

Go inside your project directory (code) and run the following command to initialize the configurations:

firebase init

As shown in the following screenshot, it will ask you "which Firebase feature do you want to set up for this folder?," and you need to select 'Hosting':

It will create a firebase.json file in the root directory of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Web Applications with Firebase

Building Web Applications with Firebase

Gareth Brown
React Native in Action

React Native in Action

nader dabit, Nickie Buckner

Publisher Resources

ISBN: 9781788477413Supplemental Content