Hey everyone! This is an car e-commerce website I built using Next.js 15.
The goal of this project is to provide a modern, fast, and interactive shopping experience for browsing, filtering, and purchasing cars online.
It was a great opportunity to improve my skills with Next.js App Router, server actions, and state management using cookies & local storage.
- Fully responsive homepage with a Swiper carousel for featured cars
- Sections for Recommended and Popularity cars
- Shared layout across pages using
layout.jsand nested layouts for product filtering - Client-side product filtering for a better browsing experience
- Local storage caching for products to avoid redundant API calls
- About page generated with SSG for fast load times
- Contact page with form validation and feedback using React Hot Toast
- Dynamic car detail pages using
slug generateStaticParamsto prebuild all car pages at build timegenerateMetadatafor SEO-friendly metadata per page- Cart and Wishlist pages powered by server actions & cookies for adding/removing cars
- Optimized for performance with Next.js 15 App Router
- Next.js 15 (App Router)
- Tailwind CSS
- Swiper.js (for carousels)
- React Icons
- React Hot Toast
- Cookies API (via
next/headers) - Local Storage (for caching products)
- Car data fetched from a remote API
- Local storage used to persist products after first load
generateStaticParamsfor static generation of all product pagesgenerateMetadatafor SEO on product pages- Cookies store cart and wishlist data, updated via server actions
- Form validation & feedback handled server-side with real-time toast notifications
- download repo as zip file
- open termnal in repo folder
- run
npm run dev
Made with ❤️ by [Hady Mohamed]