GitHunt
HA

harshkanani014/demo-ecommerce

Next.js E-Commerce Single Page Application

A modern, responsive e-commerce single page application built with Next.js, React, and TypeScript.

Features

  • ๐Ÿ›๏ธ Product catalog with beautiful card layouts
  • ๐Ÿ›’ Shopping cart with add, remove, and quantity management
  • ๐Ÿ“ฑ Fully responsive design
  • ๐ŸŽจ Modern UI with Tailwind CSS
  • โšก Fast and optimized with Next.js
  • ๐Ÿ”’ Type-safe with TypeScript

Getting Started

Prerequisites

  • Node.js 18+ installed
  • npm or yarn package manager

Installation

  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser to see the application.

Project Structure

โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ globals.css      # Global styles with Tailwind
โ”‚   โ”œโ”€โ”€ layout.tsx       # Root layout component
โ”‚   โ””โ”€โ”€ page.tsx         # Main e-commerce page
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ products.ts      # Mock product data
โ”œโ”€โ”€ types/
โ”‚   โ””โ”€โ”€ product.ts       # TypeScript type definitions
โ””โ”€โ”€ package.json         # Dependencies and scripts

Technologies Used

  • Next.js 14 - React framework
  • React 18 - UI library
  • TypeScript - Type safety
  • Tailwind CSS - Styling
  • ESLint - Code linting

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

License

MIT

Languages

TypeScript92.0%JavaScript5.1%CSS2.9%

Contributors

Created January 6, 2026
Updated January 6, 2026
harshkanani014/demo-ecommerce | GitHunt