Welcome to Byte Bazaar — a modern, scalable, and secure full-stack e-commerce platform built with React, Node.js (Express), and MongoDB. This project delivers a complete, real-world online shopping experience including 🛍️ product browsing, 🛒 cart management, 🧾 order tracking, ✍️ reviews, and 🔐 secure authentication — with seller-specific dashboards and controls.
🛠️ Tech Stack
- Frontend: React, Vite, Redux Toolkit, Shadcn UI, Lucide Icons
- Backend: Node.js, Express.js, MongoDB, dotenv, Multer, Helmet, HPP
- Authentication: JWT (Access & Refresh Tokens), 2FA Support, RBAC
- Logging: Morgan, Winston
🚀 Features
📦 Backend (Node.js + Express + MongoDB)
- 🔐 JWT-based Authentication & Authorization
- 🛍️ Product & Category Management
- 🛒 Shopping Cart & Orders API
- 📤 File Upload Support (Multer)
- 🦺 Security Middlewares: Helmet, HPP, Rate Limiting
- 📊 Request Logging (morgan + winston)
- ⚙️ Global Error Handling
- 🧑💻 Role-based Access Control (Seller / Customer)
- 🗝️ Password Reset Middleware
- 📦 Environment-based Config (dotenv)
🎨 Frontend (React + Vite)
- 📱 Responsive, Modular UI
- 🧑💼 Seller Dashboard & Product Management
- 🛒 Cart, Orders, Reviews, Address Management
- 🏷️ Category-based Filtering & Search
- 🔐 Protected Routes & Role-specific Views
- 🎛️ Reusable UI Components (Shadcn UI, Lucide Icons)
- 📦 State Management via Redux Toolkit
- ⚡ Vite for super-fast builds
📖 Usage Highlights
-
🧑💼 Sellers:
- List products
- Manage inventory
- Track orders
- Update product details
- Seller-specific dashboard
-
👤 Customers:
- Browse products
- Filter by category
- Add to cart
- Checkout orders
- Track orders
- Manage profile, addresses, and reviews
-
🔐 Security:
- Password hashing
- JWT-based Access & Refresh Tokens
- API rate limiting
- Secure role-protected routes
- Secure file uploads