A modern, full-stack, production-ready e-commerce platform built using the MERN stack with TypeScript, real-time capabilities, secure authentication, role-based access control, advanced shopping workflows, and enterprise-grade architecture.
| Service | URL |
|---|---|
| Frontend (Vercel) | Nexus Commerce Frontend |
| Backend API (Render) | Nexus Commerce Backend API |
| Category | Features |
|---|---|
| Authentication | JWT Authentication, Refresh Tokens, Google OAuth, GitHub OAuth, Email OTP Verification |
| Authorization | Role-Based Access Control (User, Seller, Admin) |
| Shopping | Product Variants, Flash Sales, Cart, Wishlist, Coupons, Multi-Address Checkout |
| Payments | Stripe, Razorpay, Cash on Delivery, Wallet Support |
| Real-Time | Socket.io Notifications, Live Order Updates, Inventory Sync |
| Dashboards | User Dashboard, Seller Analytics Dashboard, Admin Management Dashboard |
| Admin Panel | User Management, Product Moderation, Category Management, Coupon CRUD |
| Media Uploads | Cloudinary Integration with Multi-Image Upload Support |
| Security | Helmet, CORS, Rate Limiting, Secure JWT Handling |
| DevOps | Docker, Docker Compose, GitHub Actions CI/CD, Vercel + Render Deployment |
| Developer Experience | TypeScript, Modular Architecture, Reusable APIs, Clean Folder Structure |
- React 18
- Vite
- TypeScript
- Tailwind CSS
- Zustand
- TanStack Query
- Framer Motion
- Socket.io Client
- Recharts
- React Hook Form + Zod
- Node.js
- Express.js
- TypeScript
- MongoDB + Mongoose
- Passport.js
- JWT Authentication
- Socket.io
- Cloudinary
- Nodemailer
- Stripe + Razorpay
nexus-commerce/
β
βββ backend/
β βββ src/
β β βββ config/
β β βββ controllers/
β β βββ middleware/
β β βββ models/
β β βββ routes/
β β βββ services/
β β βββ utils/
β β βββ server.ts
β β
β βββ Dockerfile
β βββ tsconfig.json
β βββ package.json
β
βββ frontend/
β βββ src/
β β βββ components/
β β βββ pages/
β β βββ services/
β β βββ stores/
β β βββ hooks/
β β βββ types/
β β βββ utils/
β β
β βββ Dockerfile
β βββ vite.config.ts
β βββ package.json
β
βββ docker-compose.yml
βββ .github/workflows/- Node.js 20+
- npm 10+
- MongoDB Atlas or Local MongoDB
- Cloudinary Account
- Stripe/Razorpay Account
git clone https://github.com/YOUR_USERNAME/nexus-commerce.git
cd nexus-commercecd backend
cp .env.example .env
npm installConfigure all environment variables inside .env
PORT=
NODE_ENV=
MONGO_URI=
JWT_ACCESS_SECRET=
JWT_REFRESH_SECRET=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASS=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
STRIPE_SECRET_KEY=
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=cd ../frontend
cp .env.example .env
npm installVITE_API_URL=https://nexus-commerce-backend-yhqp.onrender.com
VITE_RAZORPAY_KEY_ID=your_keycd backend
npm run devcd frontend
npm run devFrontend runs on:
http://localhost:5173docker compose up -d --builddocker compose down- Root Directory:
frontend - Build Command:
npm run build- Output Directory:
distVITE_API_URL=https://nexus-commerce-backend-yhqp.onrender.comnpm install && npm run buildnpm startbackend| Role | Permissions |
|---|---|
| User | Browse products, add to cart, checkout, wishlist |
| Seller | Manage products, inventory, orders |
| Admin | Full platform management and analytics |
| Module | Endpoint |
|---|---|
| Auth | /api/auth |
| Users | /api/users |
| Products | /api/products |
| Categories | /api/categories |
| Cart | /api/cart |
| Orders | /api/orders |
| Payments | /api/payments |
| Wishlist | /api/wishlist |
| Reviews | /api/reviews |
| Upload | /api/upload |
| Notifications | /api/notifications |
| Admin | /api/admin |
| Seller | /api/seller |
Configured using GitHub Actions for:
- Automated Build
- TypeScript Validation
- Frontend Deployment
- Backend Deployment
- Continuous Integration
- β Authentication & Authorization
- β Protected Routes
- β Product Variants
- β Cart & Wishlist
- β Coupon System
- β Cloudinary Image Upload
- β Address Management
- β Seller Dashboard
- β Admin Dashboard
- β Real-Time Notifications
- β Responsive UI
- β Secure APIs
- β Production Deployment
- Full Stack Development
- MERN Stack Architecture
- REST API Design
- Authentication & Authorization
- State Management
- Real-Time Communication
- Cloud Deployment
- Docker & CI/CD
- TypeScript Backend Development
- Production-Level Project Structuring
- Enterprise-Level Folder Structure
- Modular Architecture
- Type-Safe Backend APIs
- Reusable Frontend Components
- Secure Authentication Flow
- Optimized API Communication
- Scalable Codebase Design
MIT License Β© 2026
Developed by Yogeshwaran S