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
Data
GET https://fakestoreapi.com/products and /products/categories.
- 2
Listing
Grid of product cards; category filter and sort stored in the URL (useSearchParams) so links are shareable.
- 3
Detail page
Route /product/:id with images, description and Add to cart.
- 4
Cart state
CartContext with useReducer: ADD, REMOVE, SET_QTY, CLEAR; persist to localStorage.
- 5
Cart page
Line items, quantity steppers, subtotal, shipping rule (free above âš999), total.
- 6
Checkout summary
A form for address with validation, then an order confirmation screen (no real payment).
- 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