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
- Install dependencies:
npm install- Run the development server:
npm run dev- 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 servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
License
MIT
On this page
Languages
TypeScript92.0%JavaScript5.1%CSS2.9%
Contributors
Created January 6, 2026
Updated January 6, 2026