An ecommerce store built with MERN stack, The Main purpose is to build a ecomerse that can solve a smaller problem and don't have to rely on bigger gaients like amazon,flipkart. This ecommerce store enable three main different flows or implementations:
- Buyers browse products and brands
- Sellers manage their produxt
- Admins manage and control the entire store components
- features:
- 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 toolkit to manage application's state
- Redux Thunk middleware to handle asynchronous redux actions
Some basic Git commands are:
$ git clone https://github.com/mohamedsamara/mern-ecommerce.git
$ cd project
$ npm install
$ cd ui npm install
$ cd backend npm install
Create .env file that include:
* MONGO_URI & JWT_SECRET
* PORT & BASE_SERVER_URL BASE_API_URL & BASE_CLIENT_URL
*JWT_SECRET & JWT_EXPIRES_IN
*RAZORPAY_KEY_ID & RAZOR_PAY_KEY_SECRET
> Create a Procfile in the root directory of your application with the following command **web: npm run start:production**
$ npm run dev