Welcome to the MERN E-commerce Website! This platform allows three types of users: admin, vendor, and customer, each with specific roles and capabilities.
-
Admin:
- Approve products added by vendors.
- Manage business orders and transactions.
- view all vendors
- disable vendor
- Act as customer
-
Vendor:
- Send new products to admin for approval.
- Edit existing products and save them as drafts.
- Submit products for admin approval.
- View business orders and transactions.
- View order status for customers
- View profit from all orders
- View their own products
- Add images for products
- Act as customer
-
Customer:
- Browse and view all products available.
- View product details on a dedicated page.
- Add products to the cart and proceed to checkout.
- View and manage the cart.
- View order history and status.
- View order status
- Cancel order within 24 hours
- MongoDB: Database for storing product and user information.
- Express.js: Backend framework for handling requests and APIs.
- React.js: Frontend library for building user interfaces.
- Node.js: Runtime environment for server-side JavaScript.
- Redux: State management for React applications.
- Authentication & Authorization: Implement user roles and permissions.
- Clone the repository:
git clone https://github.com/Amanjot-Kaur-Narang/MERN-ecommerce.git
- Navigate to the project directory:
cd MERN-ecommerce
- Install server dependencies:
npm install
- Navigate to the client directory:
cd client
- Install client dependencies:
npm install
- Return to the project directory:
cd ..
- Create a
.env
file in the project root. - Add necessary environment variable: PORT and MONGO_URL and firebase configuration for login through google, image url generation