Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 652 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 652 Bytes

react-auth-sample

Minimum sample with authentication using firebase and React's Context api

This project was bootstrapped with Create React App.

Requirement

This project uses firebase's Authentication. Please sign up for firebase and enable google login for Authentication. https://firebase.google.com/docs/auth

Usage

1.Set following environment variables in the .env

  (.env)
REACT_APP_FIREBASE_API_KEY='*****'
REACT_APP_FIREBASE_AUTH_DOMAIN='*****'
REACT_APP_FIREBASE_PROJECT_ID='*****'
REACT_APP_FIREBASE_MESSAGING_SENDER_ID='*****'

2.Installation

npm install
npm start