🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101

Online store front end

A product listing, product page and cart with checkout summary, using the free Fake Store API.

Intermediate⏱ 10–14 hoursđŸĒœ 7 stepsReactReact RouterFake Store API

What you'll learn

  • ◆Global state with Context and useReducer
  • ◆Routing and URL query filters
  • ◆Accessible, responsive UI

What you'll build

  • ✓Products with category filter and sort
  • ✓Product detail page
  • ✓Cart with quantity changes and totals
  • ✓Checkout summary page

Step-by-step guide

  1. 1

    Data

    GET https://fakestoreapi.com/products and /products/categories.

  2. 2

    Listing

    Grid of product cards; category filter and sort stored in the URL (useSearchParams) so links are shareable.

  3. 3

    Detail page

    Route /product/:id with images, description and Add to cart.

  4. 4

    Cart state

    CartContext with useReducer: ADD, REMOVE, SET_QTY, CLEAR; persist to localStorage.

  5. 5

    Cart page

    Line items, quantity steppers, subtotal, shipping rule (free above ₹999), total.

  6. 6

    Checkout summary

    A form for address with validation, then an order confirmation screen (no real payment).

  7. 7

    Polish

    Lazy-load images, show a cart badge in the header, test on a phone.

🚀 Make it stand out

  • +Wishlist
  • +Payment in test mode with Razorpay test keys
  • +Rewrite with Next.js for SEO