A full-stack e-commerce platform built with the MERN stack.
It supports role-based access control, image uploads, and dynamic product management for retailers and consumers.
-
Retailer
- Upload products with images
- View and purchase other products
-
Consumer
- Browse products
- Add to cart and buy items
- JWT-based User Authentication
- Role-Based Access Control (RBAC)
- Image Uploads using Multer
- Product Listings with Dynamic Rendering
- Cart Functionality with Purchase Flow
Area | Technology |
---|---|
Frontend | React.js |
Backend | Node.js, Express.js |
Database | MongoDB |
This project supports multiple package managers:
- npm (
package-lock.json
) - yarn (
yarn.lock
) - pnpm (
lock.yaml
)
1. Clone the repository
git clone "https://github.com/rutu-modha/e-commerce.git"
cd ./e-commerce
2. Install dependencies
- using npm
npm install
cd frontend
npm install
cd ..
cd backend
npm install
OR
- using yarn
yarn install
cd frontend
yarn install
cd ..
cd backend
yarn install
OR
- using pnpm
pnpm install
cd frontend
pnpm install
cd ..
cd backend
pnpm install
3. Setup a .env
at root file with your own Mongo_URI and JWT_SECRET variables
4. Run both servers
cd ..
npm run start
OR
cd ..
yarn run start
OR
cd ..
pnpm run start
- OAuth with Google
- Customer Support Page
- Static About and Contact Pages
This project is licensed under the MIT License.
If you liked this project, then please don't forget to give this repository a star. Your 1 star means a lot for me.
Hrutav Modha ([email protected])
Feel free to fork, submit PRs, or open an issue. Let's build something cool together!