React Storefront Β· React Admin Panel Β· Express + MongoDB Backend
π Live Demo
- Overview
- Features
- Screenshots
- Tech Stack
- Architecture
- API Reference
- Getting Started
- Project Structure
- Roadmap
- Author & Acknowledgments
Snazzy Shop is a complete e-commerce experience β a polished customer storefront, a dedicated admin panel for managing the catalog and orders, and a secure REST API on top of MongoDB.
Users can browse a collection, filter and search products, manage a cart, authenticate, and place cash-on-delivery orders. Admins log into a separate panel to add products with image uploads to Cloudinary, manage the catalog, and track order statuses end-to-end.
- π Elegant landing page with hero section, latest collection & bestsellers
- π Live text search + category (Men / Women / Kids) and type (Topwear / Bottomwear / Winterwear) filters
βοΈ Sort by price (low β high, high β low)- π Product detail pages with image gallery, size selection & related products
- π§Ί Cart with quantity controls and live totals (βΉ, INR)
- π Register / login with JWT authentication
- π³ Checkout with delivery details + Cash on Delivery (Stripe & Razorpay flows scaffolded)
- π¦ "My Orders" page with real-time order status & a full tracking timeline
- β Product reviews & ratings with star ratings, average score & "write a review" form
- β€οΈ Wishlist β save products for later with a heart toggle on every product card & dedicated wishlist page
- π Secure admin login (separate from customer accounts)
- β Add products with multi-image upload to Cloudinary
- π View & remove products from the catalog
- π View all orders, update status (Order Placed β Packed β Shipped β Out For Delivery β Delivered), every change recorded in a timestamped tracking history
- β Moderate product reviews (view all, delete spam/offensive)
- REST API built with Express 5
- JWT-based auth middleware for users and admins
- Product image upload pipeline (Multer β Cloudinary)
- MongoDB (Mongoose) models for users, products, orders & reviews
| Home | Collection with Filters |
|---|---|
![]() |
![]() |
| Product Detail | User Login |
|---|---|
![]() |
![]() |
| Shopping Cart | Checkout |
|---|---|
![]() |
![]() |
| My Orders | π± Fully Responsive |
|---|---|
![]() |
![]() |
| Admin Login | Add Product |
|---|---|
![]() |
![]() |
| Products List | Order Management |
|---|---|
![]() |
![]() |
| Layer | Technology |
|---|---|
| Frontend | React 19, React Router 7, Tailwind CSS 4, Vite 6 |
| Admin Panel | React 19, React Router 7, Tailwind CSS 4, Vite 6 |
| Backend | Node.js, Express 5 |
| Database | MongoDB + Mongoose |
| Auth | JWT (JSON Web Tokens) |
| File Storage | Multer + Cloudinary |
| Payments | Cash on Delivery (Stripe / Razorpay scaffolded) |
| Notifications | React Toastify |
flowchart LR
subgraph Clients
F[π Storefront<br/>React SPA]
A[π οΈ Admin Panel<br/>React SPA]
end
subgraph Server[Express API :4000]
R[REST API<br/>/api/user Β· /api/product<br/>/api/cart Β· /api/order]
M[Auth Middleware<br/>JWT]
U[Uploads<br/>Multer]
end
D[(MongoDB)]
C[(Cloudinary)]
F -- REST / JWT --> R
A -- REST / JWT --> R
R --> M --> D
R --> U --> C
In production the Express server can host all three apps from a single URL β storefront at /, admin panel at /admin, and the API at /api.
Base URL: {backendUrl}/api
| Method | Endpoint | Auth | Description |
|---|---|---|---|
POST |
/user/register |
β | Create account, returns JWT |
POST |
/user/login |
β | Login, returns JWT |
POST |
/user/admin |
β | Admin login |
GET |
/product/list |
β | List all products |
POST |
/product/single |
β | Get one product by id |
POST |
/product/add |
Admin | Add product (+ multipart images) |
POST |
/product/remove |
Admin | Remove product |
POST |
/cart/add |
User | Add item to cart |
POST |
/cart/update |
User | Update item quantity |
POST |
/cart/get |
User | Fetch user cart |
POST |
/order/place |
User | Place COD order |
POST |
/order/userorders |
User | Get user's orders incl. tracking history |
POST |
/order/list |
Admin | List all orders |
POST |
/order/status |
Admin | Update order status (appended to tracking history) |
POST |
/review/add |
User | Add or update a product review |
POST |
/review/product |
β | Get all reviews for a product |
POST |
/review/delete |
User | Delete own review |
POST |
/review/list |
Admin | List all reviews |
POST |
/review/admin-delete |
Admin | Delete any review |
POST |
/wishlist/get |
User | Fetch user wishlist (product ids) |
POST |
/wishlist/toggle |
User | Add or remove a product from wishlist |
- Node.js v18+ and npm
- A MongoDB instance (local or Atlas)
- A Cloudinary account (for product image uploads)
# 1. Clone the repository
git clone https://github.com/sandeep780049/shop-website.git
cd shop-website
# 2. Backend
cd backend && npm install
# 3. Storefront
cd ../frontend && npm install
# 4. Admin panel
cd ../admin && npm installbackend/.env
MONGODB_URI=<your-mongodb-connection-string>
JWT_SECRET=<any-strong-secret>
ADMIN_EMAIL=<admin-login-email>
ADMIN_PASSWORD=<admin-login-password>
CLOUDINARY_NAME=<cloudinary-cloud-name>
CLOUDINARY_API_KEY=<cloudinary-api-key>
CLOUDINARY_SECRET_KEY=<cloudinary-api-secret>
PORT=4000frontend/.env and admin/.env
VITE_BACKEND_URL=http://localhost:4000# Terminal 1 β API server on http://localhost:4000
cd backend && npm run server
# Terminal 2 β storefront on http://localhost:5173
cd frontend && npm run dev
# Terminal 3 β admin panel on http://localhost:5174
cd admin && npm run dev# Build both SPAs, then let Express serve everything
cd frontend && npm run build
cd ../admin && npm run build
cd ../backend && npm startOpen http://localhost:4000 β storefront Β· /admin β admin panel Β· /api β REST API
shop-website/
β
βββ frontend/ # π Customer storefront (React + Vite)
β βββ src/
β βββ components/ # Navbar, Hero, ProductItem, CartTotal, β¦
β βββ pages/ # Home, Collection, Product, Cart, Orders, β¦
β βββ context/ # ShopContext (global cart, auth, search state)
β βββ assets/ # Product images & icons
β
βββ admin/ # π οΈ Admin panel (React + Vite, base /admin/)
β βββ src/
β βββ components/ # Login, Navbar, Sidebar
β βββ pages/ # Add, List, Orders
β
βββ backend/ # βοΈ Express REST API
β βββ config/ # MongoDB & Cloudinary connections
β βββ controllers/ # Business logic (user, product, cart, order)
β βββ models/ # Mongoose schemas
β βββ routes/ # API route definitions
β βββ middleware/ # JWT auth (user + admin), Multer uploads
β βββ server.js # App entry β serves API + both built SPAs
β
βββ screenshots/ # πΈ App screenshots used in this README
- π³ Complete Stripe & Razorpay payment flows
- β Product reviews & ratings
- π Order tracking with status timeline
- π€ User profile & address book
- π§ Email notifications (order confirmation, shipping updates)
- π Sales analytics dashboard for admins
- π Internationalization & multi-currency
Sandeep Kumar β @sandeep780049
- UI inspired by the open-source community and modern e-commerce design patterns
- Built to demonstrate end-to-end full-stack skills: frontend, backend, database design, auth, and deployment
β Found this useful? Give the repo a star!











