This is a simple e-commerce demo built with Next.js, TypeScript, and Tailwind CSS.
- ✅ Initialize Project: Set up a new Next.js project with TypeScript and Tailwind CSS.
- ✅ Create Pages:
- ✅ Home (/)
- ✅ Products (/products)
- ✅ Product Details (/products/[id])
- ✅ Cart (/cart)
First, install the dependencies:
npm install
# or
yarn installThen, run the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
/src/app/page.tsx- Home page/src/app/products/page.tsx- Products listing page/src/app/products/[id]/page.tsx- Product details page/src/app/cart/page.tsx- Shopping cart page/src/app/layout.tsx- Root layout with header and footer
- Phase 2: Implement product display with real data
- Phase 3: Add shopping cart functionality
- Phase 4: Deploy the application