- E-Commerce platform built with the MERN stack & Redux Toolkit.
- Product reviews and ratings
- Top products carousel
- Product pagination
- Product search feature
- User profile with orders
- Admin product management
- Admin user management
- Admin Order details page
- Mark orders as delivered option
- Checkout process (shipping, payment method etc.)
- Database seeder (products & users)
- Create a MongoDB database and obtain your
MongoDB URI
.
- Create the
.env
file with following variables:
NODE_ENV = development
PORT = 5000
MONGO_URI = [MONGO_DB_URI]
JWT_SECRET = [SECRET]
PAGINATION_LIMIT = 6
- Change the
JWT_SECRET
andPAGINATION_LIMIT
to what you want.
npm install
cd frontend
npm install
# Run frontend (:5173) & backend (:5000)
npm run dev
# Run backend only
npm run server
# Create frontend prod build
cd frontend
npm run build
- You can use the following commands to seed the database with some sample users and products as well as destroy all data.
# Import data
npm run data:import
# Destroy data
npm run data:destroy
# Sample User Logins
Email: admin@email.com (Admin)
Password: secret
Email: johndoe@email.com (Customer)
Password: john_secret
Email: janedoe@email.com (Customer)
Password: jane_secret
This project is licensed under the MIT License.