Set up these five things before your next app
Your app sits on top of five layers. Put each one in place before you write the first feature: somewhere to save your code, somewhere it goes live, a database with logins, a way to get paid, and an address with analytics. Tap a layer to see what it does, then copy its prompt into Claude Code at the root of your project.
GitHub
Every change gets saved. When Claude breaks something, you go back to the last version that worked instead of untangling it.
- Make a free account at github.com and create a private repository for the app.
- Install the GitHub CLI (gh) and run gh auth login once.
- Tell Claude to commit after every change that works, with a message that says what changed.
Free.
Set this project up on GitHub. Run git init if needed, add a sensible .gitignore (never commit .env files), create a private repo with gh repo create, and push. From now on, commit after every change that works, with a one-line message saying what changed. If something you change breaks the app, tell me and offer to revert to the last working commit.Vercel
Every time you push, your site goes live on its own, and every branch gets its own preview link you can open on your phone before it reaches anyone.
- Sign in at vercel.com with your GitHub account.
- Import the repo (Add New → Project). Pushes to main go live; every other branch gets a preview URL.
- Put your secrets under Settings → Environment Variables, never in the code.
Free on the Hobby plan for personal projects.
Get this project deploying on Vercel. Install the Vercel CLI, run vercel link to connect this folder to a new project, and make sure the build passes with vercel build. List every environment variable the app reads and add each one with vercel env add for production and preview. Then push to GitHub and give me the production URL.Supabase
Your database and your logins in one place, so people can sign up on day one instead of after you’ve built auth yourself.
- Create a project at supabase.com and copy the project URL and anon key.
- Turn on email sign-in under Authentication.
- Turn on Row Level Security for every table, so users only ever see their own rows.
Free tier to start.
Add Supabase to this app. Install @supabase/supabase-js, read NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY from .env.local (I’ll paste the values), and add them to Vercel too. Build email sign-up, log-in and log-out pages. Create a profiles table linked to auth.users, turn on Row Level Security on every table, and write policies so a user can only read and write their own rows.Stripe
Set up payments now, so the first person who loves it can actually pay you.
- Make an account at stripe.com and stay in test mode until it works end to end.
- Create a product and a price in the dashboard.
- Use Stripe Checkout and a webhook, so the app finds out a payment happened even if the user closes the tab.
No monthly fee; Stripe takes a cut of each payment.
Add Stripe payments with Checkout. Read STRIPE_SECRET_KEY, STRIPE_PRICE_ID and STRIPE_WEBHOOK_SECRET from the environment (test mode keys for now). Add a button that creates a Checkout Session and redirects to it, a success page, and a webhook route that verifies the signature and marks the user as paid in Supabase on checkout.session.completed. Show me how to test it with the Stripe CLI and the 4242 test card.Domain + analytics
A real address people can remember, and analytics so you can see who shows up and where they drop off before you guess.
- Buy the domain from any registrar (Cloudflare, Porkbun, Namecheap) and add it in Vercel under Settings → Domains.
- Add analytics on day one: Vercel Web Analytics is one line, or Google Analytics if you want more.
- Track the steps that matter as events: visit, sign up, pay. The drop between them is your to-do list.
A domain is usually around $10–15 a year.
Connect my domain and add analytics. Walk me through adding the domain in Vercel and the DNS records my registrar needs. Then install @vercel/analytics, add the Analytics component to the root layout, and send custom events for sign_up when an account is created and purchase when the Stripe webhook marks someone paid, so I can see the funnel from visit to sign-up to payment.Do it in this order. GitHub first, so everything after it can be undone. Keep Stripe in test mode until a full sign-up-and-pay run works on your preview link.