⚛️🚗 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
- Create a Firebase Project and enable Google Analytics for Firebase
- Enable Firestore and Anonymous Authentication
- Run the seed data script
- Add your firebase config in a new file:
src/firebase-config.js
- Run
yarn
andyarn start
to start the development server
Deployment
- Run
firebase init
in a terminal - Run
yarn build
- Run
firebase deploy