An ecommerce store built with MERN stack, and utilizes third party API's. This ecommerce store enable three main different flows or implementations:
- Buyers browse the store categories, products and brands.
- Sellers or Merchants manage their own brand component.
- Admins manage and control the entire store components.
- Node provides the backend environment for this application.
- Express middleware is used to handle requests, routes.
- Mongoose schemas to model the application data.
- React for displaying UI components.
- Redux to manage application's state.
- Redux Thunk middleware to handle asynchronous redux actions.
1. Clone repo
2. Setup MongoDB
3. Run Backend
$ npm install
$ npm start
4. Run Frontend
Open New Terminal
$ cd frontend
$ npm install
$ npm start
Make Sure to Create a config.env file in backend/config directory and add appropriate variables in order to use the app.
PORT=
DB_URI =
STRIPE_API_KEY=
STRIPE_SECRET_KEY=
JWT_SECRET=
JWT_EXPIRE=
COOKIE_EXPIRE=
SMPT_SERVICE =
SMPT_MAIL=
SMPT_PASSWORD=
SMPT_HOST=
SMPT_PORT=
CLOUDINARY_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
fill each filed with your info respectively