NextShop
An online store built in Next.js 14 as part of the Next.js Masters course. The app covers a product catalogue with categories and collections, search, product recommendations, a cart, Stripe payments, user accounts, order history and PL/EN language versions.
– enlargeWhere it started
The Next.js Masters course involved building a complete online store using the App Router in Next.js 14 and data from a ready-made GraphQL API. The project covered both the shopping experience and elements typical of a production app: authentication, payments, orders, internationalisation and cache management.
The challenge
My task was to build the store from the frontend and Next.js server side. I was responsible for the product catalogue, search, cart, payment flow, user accounts, order handling and content pages.
How I built it
I built the app in Next.js 14 with the App Router, TypeScript and Tailwind CSS. Products, categories, collections, cart and orders were fetched through GraphQL using types generated with GraphQL Codegen. I revalidated the cache with tags after cart changes and through an endpoint for revalidating product pages.
The cart is based on Server Actions and a cookie storing the cart ID. I added optimistic quantity updates using useOptimistic and a cart preview in a modal opened via an intercepted route. I built a product list with pagination and sorting saved in URL parameters, a debounced search and product recommendations using Algolia.
I also added a review form with Zod validation, Stripe payments with webhook signature verification and sign-in with user account management via Clerk. Signed-in users can browse their order history.
I completed the app with PL and EN language versions in next-intl, content pages in MDX and generated Open Graph images for products. I set up the runtime environment and deployed a demo on Vercel.
The outcome
The result is a complete, working online store with a product catalogue, cart, payments, user accounts, orders, recommendations and two-language support. The project let me practise the key elements of the Next.js App Router in a real setting, including Server Actions, data revalidation, routing, form handling and integration with external services.
The code is publicly available on GitHub and the app has a live demo deployed on Vercel.





