Skip to content

About

My Tech Store

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

TechStore – Electronics & Tech E-Commerce App

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!


Project Structure

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

How to Run

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


Demo Accounts

Role Email Password
User demo@techstore.in demo123
Admin admin@techstore.in admin123

Any email + 4-char password also works for regular user login.


Features

🛍️ Shop

  • 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

🔐 Authentication

  • Sign in / Register modal
  • Admin and regular user roles
  • Session persisted via localStorage

🛒 Cart

  • Slide-out cart panel
  • Quantity controls (increase/decrease/remove)
  • Subtotal + shipping calculation
  • One-click checkout (creates an order)

📦 Orders

  • Order history table with status badges
  • Order detail modal with item breakdown
  • Visual tracking timeline (Processing → Shipped → Delivered)

🔧 Admin Dashboard (admin only)

  • Metrics: Revenue, Products, Orders, Low Stock
  • Products tab: Add, edit, delete products
  • Orders tab: Update order status with dropdown
  • Low stock highlighted in red

Tech Stack

  • HTML5, CSS3, Vanilla JavaScript
  • localStorage for persistent data (cart, orders, user session)
  • Zero dependencies — no npm, no build step

About

My Tech Store

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages