Skip to content

jhuleatt/react-roads

Repository files navigation

⚛️🚗 React Roads

ReactFire demo presented at React Day Berlin 2019 in the talk: Modern React apps with Hooks, Suspense, Context, and Firebase. If you want to follow along with my livecoding, use the branch livecode-starter.

View the live site at react-roads.web.app

The list of roads is from the United States Census Bureau's US Roads public BigQuery dataset.

Setup

  1. Create a Firebase Project and enable Google Analytics for Firebase
  2. Enable Firestore and Anonymous Authentication
  3. Run the seed data script
  4. Add your firebase config in a new file: src/firebase-config.js
  5. Run yarn and yarn start to start the development server

Deployment

  1. Run firebase init in a terminal
  2. Run yarn build
  3. Run firebase deploy