Boilerplate for React & Redux, integrated with Firebase authentication.
react
redux
(withreact-redux
)react-router-redux
(withreact-router
)firebase
-
Clone this repo (and reset git by deleting
.git
) then install dependencies withyarn install
ornpm 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-tools
ornpm install -g firebase-tools
. -
Login with
firebase login
then 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
build
for public folder - Configure as a single-page app (
y
) - Do not override index file (default)
-
Build with
yarn run build
ornpm run build
and deploy to Firebase Hosting withfirebase deploy
.
Same as a create-react-app
project:
- Run with
yarn start
ornpm start
- Build with
yarn run build
ornpm run build