React-Redux-Firebase-Boilerplate
Whitney Griffith - ImpactWhit
Author:Built from:
React-Redux-Firebase-Router Tutorial1 Tutorial2 Tutorial3
UI Builder - Sketch & Pagedraw
Instructions
Starting the project
git clone https://github.com/whitneygriffith/react-redux-firebase
- create
src/config/dev.js
in main folder and populate it with your personal configs from Firebase in the following format:
export const FirebaseConfig = {
apiKey: "AIzaSyBnVQDfjkBkZfC7FcqsTpn8o7of45trmqs",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
};
npm install
npm start
Adding a new page
Edit the following:
- App.js
- Import the new page
import NewPageComponentName from "./components/PageComponentFolder";
- Within the
<div>
tag embedded in<BrowserRouter>
tag, add the following<Route exact path="/new_page_url" component={NewPageComponentName} />
To require Authentication to view a page:
- Import the new page
- App.js
- Within the
<div>
tag embedded in<BrowserRouter>
tag, add the following<Route exact path="/new_page_url" component={requireAuth(NewPageComponentName)} />
- Within the
Firebase Additional Suggestions
[ ] Implement Firebase Sign In With Link CallBack using onAuthStateChanged Listener
[ ] Error Handling to display error to user from Firebase's Sign In, Sign Up and other function calls
Sign Up Additional Suggestions
[ ] Create input pattern validators for Email, Phone Number Ref
Production TODOs
General
[ ] Separate Client from server side
Environment Variables
[ ] Set env
to production
in config.js
Firebase Console
[ ] Add domain to list of authorized domains [ ] Define what occurs to email action links on android or ios device
References
React
React + Firebase
React + Redux
React Redux Tutorial for Beginners: The Definitive Guide (2018)
React + Redux + Firebase
Tutorial for React + Firebase + Redux Codebase
How to Integrate React Redux and Firebase in 3 Simple Steps
react-redux-firestore-boilerplate
Firebase login with email, Fb, Twitter, Google or Github
Firebase
Email Link Authentication Code Example
Email Link Authentication Repos