Simple ecommerce react js app with firebase.
$ npm install
Login into your google account and create a new firebase project here
Create a .env
file for production and .env.test
for development in the root of your project folder
and add the following configuration details. It can be found on your firebase project.
FIREBASE_API_KEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_DB_URL=
FIREBASE_PROJECT_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_MSG_SENDER_ID=
FIREBASE_APP_ID=
$ npm run dev-server
$ npm run build
- Inside
src/routers/AppRouter.js
uncomment all code related to admin. - Inside
src/reducers/authReducer.js
, change the initState type value from 'client' to 'admin'. DeleteinitState
variable if you want to authenticate client. - Delete persisting auth state in localStorage if one exists.
- Admin CRUD operations
- Firebase authentication
- Firebase auth provider authentication
- Account creation and edit