Challenge

Realtime Database

Find the repo

We'll be working on a branch of our firelist-react repo named challenge-rtdb.

Localhost installation

Pull the repo directly from GitHub...
1
git clone https://github.com/how-to-firebase/firelist-react.git
2
cd firelist-react
3
git checkout challenge-rtdb
Copied!

Edit environment files

Update the following files with your own project details:
    /.firebaserc
    /public/environments/environment.dev.js
    /public/environments/environment.js

Start the app

Once you're on the branch, make sure to run yarn or npm install to get your Node.js dependencies.
Then run yarn start or npm run start to spin up the development server.
1
yarn
2
yarn start
Copied!

Complete the challenge

Search the codebase for Challenge Realtime DB to find all of the challenges.
Read the comments and complete the steps in those files.
    database.rules.json
    src/database/set-user-tokens.js
Last modified 3yr ago