// the find
adrianhajdin/ecommerce_sanity_stripe
Modern Full Stack ECommerce Application with Stripe
A tutorial project from JSMastery that walks through building a Next.js ecommerce store backed by Sanity CMS and Stripe payments. Aimed squarely at developers learning this stack, not at anyone shipping production software. The product catalog is hardcoded to headphones and earphones from the tutorial video.
Sanity integration is clean — the schema definitions in sanity_ecommerce/schemas are minimal and easy to follow as a starting point. Stripe checkout flow is self-contained in pages/api/stripe.js, which makes it easy to trace the full payment path. Cart state is handled entirely in React Context without any external state library, which is the right call for this scope. Next.js page structure (getStaticPaths + getStaticProps on product slug pages) is the correct approach for a product catalog.
This ships with .env committed to the repo — a major red flag for anyone cloning and not reading carefully. The Sanity studio inside this repo uses Sanity v2 (now deprecated and unsupported), so the whole CMS setup needs a rewrite before you'd use it today. There are no tests anywhere. The cart has no persistence — refresh the page and it's gone, which is fine for a tutorial but would be the first thing you'd fix in a real store.