A production-ready E-Commerce Backend built with Node.js, Express.js, and MongoDB. The project provides a scalable REST API with secure JWT authentication, OTP-based email verification, role-based authorization, product management, order processing, image uploads, Razorpay payment integration (ITS PENDING FOR NOW), and automated email notifications using Nodemailer.
- User Registration & Login
- OTP Email Verification using Nodemailer
- JWT Authentication
- Password Hashing with bcrypt
- Role-Based Authorization (Admin & User)
- Protected Routes
- Register & Login
- Email Verification
- View User Profile
- Browse Products
- Place Orders
- View Order History
- Create Products (Admin)
- Update Products (Admin)
- Delete Products (Admin)
- View All Products
- View Single Product
- Product Categories
- Product Image Uploads
- Create Orders
- View User Orders
- Update Order Status (Admin)
- Order Tracking
- Order History
- Razorpay Payment Gateway
- Secure Payment Verification
- Online Payment Processing
- Upload Product Images using Multer
- Cloudinary Image Storage
- Optimized Cloud Image Management
- OTP Verification Email during Registration
- Order Confirmation Email after Successful Order Placement
- Automated Email Delivery using Nodemailer
- Manage Products
- Manage Orders
- Manage Users
- Dashboard APIs
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT (JSON Web Token)
- bcrypt
- Multer
- Cloudinary
- Razorpay
- Nodemailer
git clone https://github.com/Shivam0099x/bazaar.gitcd bazaarnpm installPORT=5000
MONGODB_URI=
JWT_SECRET=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
EMAIL_USER=
EMAIL_PASS=npm run dev
or
npm run start- JWT Authentication
- Password Hashing using bcrypt
- OTP Email Verification
- Role-Based Authorization
- Protected Routes
- Environment Variables for Sensitive Credentials
- Secure Payment Verification
- Authentication APIs
- User APIs
- Product APIs
- Category APIs
- Order APIs
- Payment APIs
- Admin APIs
- Email Notification APIs
- Production-ready REST API Architecture
- Clean Project Structure
- Scalable Folder Organization
- Secure Authentication & Authorization
- Third-Party Integrations (Cloudinary, Razorpay, Nodemailer)
- Image Upload & Management
- Payment Gateway Integration
- Automated Email Notifications
- MongoDB Database Integration
If you found this project helpful, consider giving it a ⭐ on GitHub!