Full-Stack Grocery Commerce & Inventory Platform
End-to-end MERN stack e-commerce web application featuring user authentication, shopping cart workflows, product catalog, and administrator inventory controls.
Interactive Client-Side Demonstration • Demonstrates client-side catalog navigation, shopping cart state, and order workflows.
What real-world challenge does this system address?
System Design & Approach
- JWT Role-Based Auth: Secure authentication distinguishing customer accounts from administrative inventory managers.
- Persistent Shopping Cart: Real-time quantity adjustments and subtotal calculation.
- Admin Inventory Dashboard: CRUD operations for adding, updating stock quantities, and archiving items.
- Responsive Catalog Browsing: Filterable product grid optimized for mobile and desktop screens.
System Architecture & Dataflow
React Frontend SPA -> Express RESTful API -> JWT Middleware -> MongoDB Mongoose Data Layer
Manages cart state, user session tokens, and responsive UI components.
Verifies bearer tokens and validates incoming request parameters.
Enforces schema constraints for products, orders, and user credentials.
Stack Specification & Components
JavaScript / TypeScript
React + Express.js
MongoDB
Frontend Vercel / Render API
E-Commerce Cart & Inventory State Sandbox
Simulates client-side cart reducer, subtotal calculation, and JWT session contract
Engineering Decisions
Key design choices, constraints, and solutions formulated during development
Stateless JWT Authentication
Used signed JSON Web Tokens stored securely in client memory with refresh capabilities.
Enables horizontal scalability of the Express backend without needing synchronized session stores.