This is a minimal, ready-to-run Next.js + TypeScript project focused on a Product Listing Page (PLP). It demonstrates:
- Server components for data fetching (Next.js app router)
- Filter by category
- Sorting (price, rating)
- Search
- Routing (product detail, category pages)
- Install dependencies:
npm install- Run dev server:
npm run devData is fetched from https://dummyjson.com/products (server-side).
Files of interest:
app/page.tsx— PLP with server-side data fetchapp/products/[id]/page.tsx— Product detail pageapp/categories/[id]/page.tsx— Category listing pageapp/components/*— UI componentslib/api.ts— API helperstypes/common.ts— Type definitionsutils/*— Utility functions