You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,17 @@ This is the companion repository to [React, Firebase & Bacon](https://frontarm.c
6
6
Each branch within this repository contains code for one or more steps within the course. [See an outline and installation instructions at the master branch »](https://github.com/frontarm/react-firebase-bacon)
7
7
8
8
9
-
Step 055 - Programmatic navigation
9
+
Step 060 - Firestore configuration
10
10
--------
11
11
12
12
This step makes the following changes:
13
13
14
-
- Splits the thankyou screen out into a separate route at `/thanks`.
15
-
- Programmatically navigates to `/thanks` when a submit completes successfully.
14
+
- Add the [firebase](https://npmjs.com/package/firebase) package as a dependency.
15
+
- Add a `firestore.rules` file that (mostly) locks down the firestore database, and tell Firebase to use it in `firebase.json`.
16
+
- Add `src/config.js`, which exports an object with the app's config, as set by your environment variables at build time.
17
+
- Add an `.env.example` file (you can rename this `.env.local` and add your Firebase configuration, to set your environment variables for config.js).
18
+
- Replace `src/backend.js` with code to initialize firestore.
19
+
- Remove code to display a response count from the Landing route, and replace the call to the `postResponse` function with a direct call to Firestore.
0 commit comments