test admin account: Login: test@test.test Password: Zaq12wsx
Simple shop connected with firebase and stripe payments.
A project of a simple general online store to learn how to communicate with firebase and to learn how to handle payments.
Language: JavaScript
Framework: React + Redux
Framework backend: Express (Firebase functions)
Other tools:
- Scss
- MaterialUI
- Jest + Enzyme (tests)
- Axios
- Stripe
- firebase
- react-router-dom
The project is ready. There was no plan to do form validation.
Features:
- Add products as a Admin
- Shopping cart service
- Order history
- Firebase login (Email and Google)
- Stripe payments (Only make in
withFunctions
branch) - Redux-Saga for async
- tests (to do)
-
After cloning or extracting the .zip files of this repository:
cd ecommerce
-
Next go to functions file and install dependencies:
cd functions
nppm i
cd ..
-
Next go to client and install dependencies:
yarn
cd ..
-
After installation of dependencies, you must create .env and Config files, I've already created sample files in the repository, you need to rename them and provide your environment variables.
Rename files:
src\firebase\templateConfig.js
tosrc\firebase\firebaseConfig.js
src\stripe\templateConfig.js
tosrc\stripe\stripeConfig.js
functions\.envSample
tofunctions\.env
Enter yours secrets and Keys -
Start application in root folder (Client):
yarn start
-
Start application in functions folder (Client):
npm run serve
This project was bootstrapped with Create React App.