+
Skip to content

jawad9/e-commerce

 
 

🛒 E-Commerce Web App

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.

Live Demo

E-Commerce

Note: Currently, the link is frontend-only and not functional. Backend will be added soon with proper configurations and functionalities working well.

🔐 User Roles

  • Retailer
    • Upload products with images
    • View and purchase other products
  • Consumer
    • Browse products
    • Add to cart and buy items

🚀 Key Features

  • JWT-based User Authentication
  • Role-Based Access Control (RBAC)
  • Image Uploads using Multer
  • Product Listings with Dynamic Rendering
  • Cart Functionality with Purchase Flow

🛠️ Tech Stack

Area Technology
Frontend React.js
Backend Node.js, Express.js
Database MongoDB

Package Manager Support

This project supports multiple package managers:

  • npm (package-lock.json)
  • yarn (yarn.lock)
  • pnpm (lock.yaml)

💻 Getting Started

1. Clone the repository

git clone "https://github.com/jawad9/e-commerce"
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

✅ Upcoming Features

  • OAuth with Google
  • Customer Support Page
  • Static About and Contact Pages

📄 License

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.

👨‍💻 Author

Muhammad Jawad (muhammadjawad91@gmail.com)

🤝 Contributions

Feel free to fork, submit PRs, or open issues. Let's build something cool together!

About

An ECommerce website made using MERN stack

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.4%
  • CSS 10.8%
  • HTML 0.8%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载