A simple boilerplate that I have created while studying firebase API. It shows how to:
- Sign in, sign up and sign out a user by using the firebase console API;
- Share the logged in user information through the component tree by using the Context API and the
useContext
hook; - How to create private routes based on the context information.
- Clone this project;
- Create a firebase project and fill the data in the
.env.example
file; - Rename the
.env.example
file to.env
; - Install the dependencies:
yarn install
; - Start the project:
yarn start
.
This project was bootstrapped with Create React App.