react-redux-router-firebase
react-redux-router-firebase copied to clipboard
Boilerplate for React & Redux, integrated with Firebase authentication
react-redux-router-firebase
Boilerplate for React & Redux, integrated with Firebase authentication.
reactredux(withreact-redux)react-router-redux(withreact-router)firebase
Setup
-
Clone this repo (and reset git by deleting
.git) then install dependencies withyarn installornpm install. -
Login to the Firebase Console then choose or create a project:
- Select Authentication in the sidebar then select the Sign-in method tab
- Enable Email/Password
- Click Web Setup (top-right corner)
- Copy config statement to
firebase.config.js
-
Install the Firebase CLI with
yarn global add firebase-toolsornpm install -g firebase-tools. -
Login with
firebase loginthen initialize a Firebase project withfirebase init:- Choose your Firebase features (all on recommended, default)
- Choose your Firebase project
- Use
database.rules.json(default) for database rule file - Do not override database rule file (default)
- Use
buildfor public folder - Configure as a single-page app (
y) - Do not override index file (default)
-
Build with
yarn run buildornpm run buildand deploy to Firebase Hosting withfirebase deploy.
Usage
Same as a create-react-app project:
- Run with
yarn startornpm start - Build with
yarn run buildornpm run build