Full-Stack Firebase
  • Introduction
  • Introduction
    • Full-Stack Firebase
    • Why Firebase?
    • What is serverless?
    • Prerequisites
    • Overview & Structure
    • Write your first query
    • Links
    • Downloadable Notes
  • Firebase Console
    • Introduction
    • Walkthrough
  • Firebase Tools
    • Introduction
    • Walkthrough
  • Firebase Authentication
    • Introduction
    • Walkthrough
    • Challenge
    • Notes
  • Cloud Firestore
    • Introduction
    • Walkthrough
    • Security Rules
    • Indexes
    • Challenge
    • Notes
  • Realtime Database
    • Introduction
    • Walkthrough
    • Security Rules
    • Challenge
    • Notes
  • Cloud Functions for Firebase
    • Introduction
    • Walkthrough
    • Challenge
    • Notes
  • Firebase Storage
    • Introduction
    • Walkthrough
    • Security Rules
    • Challenge
    • Notes
  • Cloud Messaging
    • Introduction
    • Walkthrough
    • Challenge
    • Notes
  • Firebase Hosting
    • Introduction
    • Walkthrough
    • Challenge
    • Notes
Powered by GitBook
On this page
  • Firebase Hosting
  • Find the repo
  • Localhost installation
  • Edit environment files
  • Build the app
  • Inspect firebase.json
  • Deploy the app
  1. Firebase Hosting

Challenge

PreviousWalkthroughNextNotes

Last updated 6 years ago

Firebase Hosting

Find the repo

We'll be working on the of our repo.

Localhost installation

Pull directly from GitHub...

git clone https://github.com/how-to-firebase/firelist-react.git
cd firelist-react
git checkout master

Edit environment files

Update the following files with your own project details:

  • /.firebaserc

  • /functions/environments/environment.dev.js

  • /functions/environments/environment.js

  • /public/environments/environment.dev.js

  • /public/environments/environment.js

Build the app

Once you're on the branch, make sure to run yarn build or npm install to get your Node.js dependencies.

Build the app with yarn build or yarn build:windows.

Inspect firebase.json

Read through /firebase.json and try to understand the settings.

Deploy the app

Just run yarn deploy!

Check out /package.json and the scripts attribute to see what scripts are available and what they do.

master branch
firelist-react
the repo