A fully functional multi-page e-commerce web application built with plain HTML, CSS, and JavaScript. No frameworks or build tools required — just open in a browser!
techstore/
├── index.html ← Shop / Home page
├── css/
│ └── style.css ← All styles
├── js/
│ ├── data.js ← Product data & localStorage helpers
│ ├── auth.js ← Login, register, logout
│ ├── cart.js ← Cart management
│ ├── shop.js ← Product listing & filtering
│ ├── app.js ← Nav, toast, shared utilities
│ └── admin.js ← Admin dashboard logic
├── pages/
│ ├── product.html ← Product detail page
│ └── orders.html ← My Orders page
└── admin/
└── dashboard.html ← Admin dashboard
Option 1 – Direct open
Just double-click index.html to open in your browser.
Option 2 – Local server (recommended)
# Python
python -m http.server 3000
# Node.js (npx)
npx serve .Then open http://localhost:3000
| Role | Password | |
|---|---|---|
| User | demo@techstore.in | demo123 |
| Admin | admin@techstore.in | admin123 |
Any email + 4-char password also works for regular user login.
- Product grid with 8 Electronics & Tech products
- Category filter chips (Laptops, Phones, Audio, etc.)
- Live search by product name or category
- Product detail pages with specs, rating, and reviews
- Add to cart from grid or detail page
- Sign in / Register modal
- Admin and regular user roles
- Session persisted via localStorage
- Slide-out cart panel
- Quantity controls (increase/decrease/remove)
- Subtotal + shipping calculation
- One-click checkout (creates an order)
- Order history table with status badges
- Order detail modal with item breakdown
- Visual tracking timeline (Processing → Shipped → Delivered)
- Metrics: Revenue, Products, Orders, Low Stock
- Products tab: Add, edit, delete products
- Orders tab: Update order status with dropdown
- Low stock highlighted in red
- HTML5, CSS3, Vanilla JavaScript
- localStorage for persistent data (cart, orders, user session)
- Zero dependencies — no npm, no build step