Shop-Now is a full-stack e-commerce platform designed to simulate real-world online retail systems. The project focuses on clean architecture, secure APIs, scalable data modeling, and production-ready patterns, rather than just UI replication.
It supports both customer-facing commerce flows and admin-level product management, making it suitable as a real business foundation.
-
Realistic order lifecycles
-
Secure authentication and authorization
-
Modular backend architecture
-
Scalable product querying and filtering
-
User authentication and authorization
-
Product browsing with search, filter, and sorting
-
Cart management and checkout flow
-
Order placement and order history
-
Secure API access using JWT
-
Product creation and inventory management
-
Order status management
-
Role-based access control (Admin vs User)
-
Dashboard-ready API endpoints
-
Component-driven UI
-
Centralized state management
-
API-driven rendering
-
RESTful API design
-
Layered architecture (Controller → Service → Repository)
-
Stateless authentication using JWT
-
Centralized error handling and validation
-
Normalized schema design
-
Indexed queries for performance
-
Relational integrity between users, products, orders
POST /auth/register
POST /auth/login
GET /products
GET /products/:id
POST /orders
GET /orders/user
POST /admin/products
PUT /admin/orders/:id
All APIs follow:
-
Proper HTTP status codes
-
Input validation
-
Secure access control
-
Password hashing using industry standards
-
JWT expiration and verification
-
Protected routes for admin actions
-
Input sanitization to prevent injection attacks
-
Performance & Scalability
-
Indexed queries for frequently accessed fields
-
Pagination for large product datasets
-
Stateless backend to support horizontal scaling
-
Separation of concerns for maintainability
-
React.js
-
HTML5, CSS3
-
JavaScript (ES6+)
-
Node.js
-
Express.js
-
MongoDB
-
Mongoose ODM
-
Authentication
-
JWT-based authentication
-
Role-based authorization
Backend
URI=MONGODB_URL
JWT_KEY=JWT_SECRET
JWT_EXPIRES_IN=7d
COOKIE_SECURE=false
PORT=5000
CLOUDINARY_API_KEY=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_SECRET=
CLUDINARY_URL=CLOUDINARY_URL=