finds.dev

sdras/ecommerce-netlify

🛍 A JAMstack Ecommerce Site built with Nuxt and Netlify Functions

View on GitHubHomepage ↗

★ 1,563Vueupdated Jan 2023

// the take

A demo JAMstack storefront using Nuxt 2 + Netlify Functions + Stripe Checkout. Built as a teaching example by Sarah Drasner to accompany two CSS-Tricks articles on serverless payments and dynamic Nuxt routing. It's a learning resource, not a production starter.

The Netlify Functions integration is minimal and clear — two functions handle the payment intent and webhook, which is exactly the right surface area for understanding the pattern without noise. Product data lives in a static JSON file, making the data flow easy to trace end to end. The component breakdown is clean and maps directly to UI regions. Good companion to the CSS-Tricks writeups if you're trying to understand JAMstack checkout flows.

Last pushed January 2023 and built on Nuxt 2, which is end-of-life; migrating to Nuxt 3 would require a significant rewrite. Product catalog is hardcoded in `static/storedata.json` with no CMS, cart state lives in Vuex with no persistence, and there's no inventory management — none of which matters for a demo but bites you immediately if you try to build on it. The Stripe integration uses an older Checkout flow and there's no webhook signature verification in `handle-payment-succeeded.js`, which is a real security gap if anyone copies this to production.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,563
Forks
409
Language
Vue
Last commit
27 Jan 2023

// nearby

If ecommerce-netlify isn't quite it.

All repos →