Learning a Production Stack by Shipping a Paid Directory
TL;DR
- I built a local business directory with real payments, accounts and admin tools to learn a production stack, not to follow a tutorial.
- The stack: Astro, Supabase (Postgres with row-level security), Stripe subscriptions and Vercel, built with Claude Code.
- The lesson: shipping something with money in it is the fastest way to learn, because the edge cases teach more than the happy path.
I wanted a local business directory where businesses could submit and pay for listings. More than that, I wanted to learn a production stack by actually shipping one, not by following a tutorial.
The challenge
Build and deploy a working platform with payments, user accounts and admin controls, the parts most side projects skip.
What I did
I wrote the spec first, then built it with Claude Code on Astro and Supabase:
- Postgres with row-level security, so each business only sees its own data, plus Edge Functions that send draft-reminder emails through Brevo.
- Stripe subscriptions with Standard and Featured tiers and promo codes.
- Idempotent webhooks. Every Stripe event is logged to a processed-events table, so Stripe’s retries don’t double-process a payment.
- An admin approval workflow, refunds and click analytics.
- Business data pulled in through Apify, with vector embeddings for “similar listings” search.
It’s deployed on Vercel with API and end-to-end tests. Here’s how the pieces fit together:

And here’s a seven-minute walkthrough of the app: browsing and filtering listings, adding a listing, the admin dashboard and Stripe checkout.
What changed
I came out with a working product and first-hand knowledge of how subscriptions and webhooks behave in the real world, including all the ways a payment event can arrive twice.
What I took away
The fastest way to learn a stack is to ship something with money in it. The edge cases teach you more than the happy path.
For where the build went next, three months and 230 commits later, and where AI helped or got in the way, read So Here’s What Vibe Coding Can’t Teach You.
References
- NYC directory showcase: the stack, design decisions and data flow (public repo)
- Astro: the site framework
- Supabase row-level security: per-business data access
- Supabase Edge Functions: the reminder emails
- Stripe webhooks: including handling duplicate events
