MY SHOP

Full Stack
Web Dev
MY SHOP

Tech Stack

Next.js
React
Typescript
Tailwind CSS
Sanity
Stripe
Clerk
Zustand
GitHub Actions
Vercel

Description

MY SHOP is a full-stack e-commerce storefront for phones, gadgets, and home appliances, built with the Next.js 16 App Router and React 19. Products, categories, brands, blog posts, orders, and customer addresses are all stored in Sanity, with an embedded Sanity Studio at /studio for managing the catalog.

Checkout is designed to be trustworthy: the browser only sends product ids, quantities, and an address id. A server action validates the request with Zod, re-reads prices and stock from Sanity, and creates the Stripe Checkout Session. Orders are recorded by a signature-verified Stripe webhook that is idempotent, so retried or duplicate events never create duplicate orders or double-decrement stock.

The cart and wishlist live in a persisted Zustand store, authentication and protected routes are handled by Clerk, and a GitHub Actions pipeline lints, type-checks, and builds every push and pull request.

  • Built a complete shopping flow (browse, filter, cart, wishlist, checkout, order history) on Next.js 16, React 19, and Tailwind CSS with shadcn/ui components.
  • Modeled the catalog, blog, orders, addresses, and newsletter subscribers as Sanity schemas, with TypeGen-generated types for type-safe GROQ queries.
  • Integrated Stripe Checkout with server-side price and stock validation, so the amount charged never comes from the client.
  • Wrote an idempotent Stripe webhook that records orders under deterministic ids, attaches invoices, and decrements stock atomically in a single Sanity transaction.
  • Secured order and success pages with Clerk through the Next.js 16 proxy, and checked ownership of addresses and orders on the server.
  • Kept shop filters and sorting in URL search params, and cached catalog reads with Next.js revalidation, plus a dynamic sitemap and robots.txt for SEO.
  • Set up a GitHub Actions CI pipeline (lint, type check, build) and deployed on Vercel.

Page Info

Storefront

Home page with a promotional banner, category tabs, and product cards showing sale badges, discounted prices, stock status, and quick add-to-cart and wishlist actions.

MY SHOP: Storefront screenshot

Shop & Filters

Catalog page with category, brand, and price-range filters plus sorting. Filters are kept in the URL, so they survive refreshes, can be shared, and work with the back button.

MY SHOP: Shop & Filters screenshot

Product Details

Product page with an image gallery, live stock badge, characteristics, delivery and return info, and share actions.

MY SHOP: Product Details screenshot

Cart & Checkout

Cart and checkout are gated behind Clerk sign-in. Signed-in users pick a saved delivery address and pay through Stripe Checkout.

MY SHOP: Cart & Checkout screenshot