This repo was created to be an email authentication included starter kit for React apps with firebase.
Includes a generic signup and login page with minimal styling.
Steps to use:
-
Fork and clone repository.
-
npm install
-
Create a project on firebase (https://console.firebase.google.com/)
-
Enable Email/Password sign up method in the firebase authentication tab
-
Create a .env file
-
Populate the .env file with the following, replacing the X's with code the config code from firebase:
REACT_APP_API_KEY = XXXXXXXXXXXXXXXXXXX
REACT_APP_AUTH_DOMAIN = XXXXXXXXXXXXXXXXXXX
REACT_APP_DATABASE_URL = XXXXXXXXXXXXXXXXXXX
REACT_APP_PROJECT_ID = XXXXXXXXXXXXXXXXXXX
REACT_APP_STORAGE_BUCKET = XXXXXXXXXXXXXXXXXXX
REACT_APP_MESSAGING_SENDER_ID = XXXXXXXXXXXXXXXXXXX
-
npm start (open localhost if it doesnt open automatically)