A full-stack e-commerce platform built with React, Vite, Tailwind CSS, Node.js, Express, and MongoDB.
- Product browsing, sorting, filtering, and search
- Product details with image gallery
- Shopping cart, checkout flow, and order confirmation
- Authentication (name + mobile) with JWT session
- User profile and order history
- Basic admin dashboard to manage products and orders
- Responsive design optimized for mobile and desktop
npm install
cd server
npm installCopy the sample env file and update as needed:
cp server/.env.example server/.envStart a local MongoDB instance (e.g., using MongoDB Community or Atlas).
In one terminal (backend):
cd server
npm run devIn another terminal (frontend):
npm run devThe frontend app will run at http://localhost:5173 and proxy API requests to http://localhost:5000.
To access the admin dashboard, log in with the mobile number 0000000000. That user will be granted admin privileges.
src/— React frontend (components, pages, context, hooks)server/— Express backend (routes, models, authentication)server/seed/— Seed data for example products
- This application is intended as a prototype and can be extended with features like real payment integration, order tracking, and a richer admin panel.