What it does:
A full backend REST API for an electronics e-commerce store. Handles user authentication, product management, shopping cart, and order data — all connected to a MongoDB database.
Features:
User registration & login with bcrypt password hashing
Role-based users — admin and user
Product management with name, price, and stock status (inStock / outStock)
Shopping cart with items, quantities, and auto total price
Order model ready for checkout flow
Environment variables via .env for secure DB connection
Timestamps on all models (createdAt, updatedAt)
Tech Stack:
Node.js — runtime
Express.js v5 — routing & middleware
MongoDB + Mongoose — database & schema modeling
bcrypt — password hashing
dotenv — environment config
nodemon — dev auto-restart