Build your first web app
Build the main feature in your plan and share a live link. Keep it free, take payments at launch, or add checkout later.
Before you start
The first two are required. They set up your AI tool and write PLAN.md, which the steps read. The other three are short, optional reads.
You’ll need
- A computer with a web browser, and a phone to check the live app.
- If people sign in, a second email address to test what each person can see.
- GitHub account. The free plan includes private repositories.
- Supabase, Firebase or Clerk (if your app needs accounts) account. Each has a free plan to start.
- Stripe, Paddle or Polar (only if you charge at launch) account. None has a monthly fee to start, and each takes a share of every sale.
- Vercel, Netlify or Cloudflare account. Each has a free plan, but Vercel’s free Hobby plan is for personal, non-commercial use only.
Your part
- Create the accounts your plan needs yourself, and type keys only into your .env file or the service’s settings.
- Pick one service at each choice. Your AI tool explains, and you decide.
- Try your main feature in your browser after every change.
- If you charge at launch, test checkout first and switch it to live yourself.
Copy the prompt for the whole guide
Paste it into your AI tool. It works through every step below with you, and tells you when it needs you.
I’m following the BuildLadder guide “Build your first web app”. What the guide says I’ll end up with: A web app someone can open and use from a live link. Add accounts, saved data and checkout when your plan calls for them. This comes from https://buildladder.com/guides/web-app. If you can open web pages, read https://buildladder.com/guides/web-app.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address. How to work with me: - Go through the steps below in order, one at a time. - Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money. - When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done. - The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you. - Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings. - After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one. - Use plain words. I may never have coded before. - Some steps are a choice between tools. Ask me which one I want, then open that tool’s steps page and work through its steps with me, the same way as here. Number them as the guide’s page does: 4.1, 4.2 and so on for step 4. If you can’t open web pages, ask me to copy the prompt from that page and paste it in. Then carry on with the next step. ## Step 1 of 16: Set up the web app Read PLAN.md in this folder. It has my plan, including the tools I chose. I want to build it as a web app: pages people open in a browser. Ask whether this version is free, paid at launch, or might charge later. Record my answer in PLAN.md. Only set up payments for a paid launch. Set up a web app for the first version, using the tools in PLAN.md. If it names none, suggest one or two widely used options that work on Vercel, Netlify and Cloudflare. Say who each one suits, and let me pick. If there are already files here, keep them and work with them. Ask before replacing anything. Create only a simple starting page for now. Then tell me, step by step: - which files you made and what each one is for - anything I need to install or sign in to myself - how to open the web app on my computer to see it Write how to open it into PLAN.md, so I can find it again tomorrow. Don’t build the features, sign-in or payments yet. It worked when: You can open a simple starting page in your web browser, on your own computer. If something goes wrong: - It says a command wasn’t found. Copy the exact message into the chat and ask: “What does this mean, and how do I fix it?” - The page is blank. Say: “The page is blank in my browser. Please find out why and fix it.” ## Step 2 of 16: Save a working version My web app works right now. I want to save this version, so I can go back to it if something breaks later. Set up Git in this folder if it isn’t set up yet, with main as the branch name. Make sure .env and any other files with keys are listed in .gitignore, so they’re never saved. Then save a version (a commit) with a short message like “First working version”. Explain in plain words what you did, and how I can go back to this version later. Don’t upload anything online yet. It worked when: Your AI tool lists your saved version when you ask: “Show me my saved versions.” If something goes wrong: - It asks for a name and email for Git. Give your name, and the email on your GitHub account or the one you’ll sign up to GitHub with. If the email doesn’t match, GitHub doesn’t count your saved versions, and neither does the Leaderboard. ## Step 3 of 16: Undo a change on purpose I want to practice undoing a change, so I know it works before I need it. 1. Change one word I can see on the first page. 2. Show me where to see the change. Then take my web app back to the version I saved last. 3. Tell me how to check the old word is back. Then explain in plain words what going back to a saved version brings back, and what it leaves alone. For example, it doesn’t change data or settings I keep in an online service. It worked when: You see the new word, and then the old word comes back. Before we move on, check with me: - Can you name one thing that going back doesn’t undo? If something goes wrong: - It seems to have lost newer work. Ask: “Show me all my saved versions.” Newer saved versions are usually still there. Ask it to bring back the newest one. ## Step 4 of 16: Choose how people sign in Skip this if people can use your app without an account. Otherwise pick the service people use to make an account and sign in. Skip steps whose title starts “Phone app only”. Leave any step that needs your own domain until “Get sign-in ready for real people”. This choice is optional. Ask me whether I need it, and skip it if I don’t. Ask me which of these I want: - Supabase: Pick Supabase if your product also saves data in tables, or you already use Supabase for your database. Steps (the “Add sign-in with Supabase” part): https://buildladder.com/tools/supabase.md - Firebase: Pick Firebase if you already use Google’s Firebase tools, or want Google sign-in with no separate Google Cloud setup. Steps (the “Add sign-in with Firebase” part): https://buildladder.com/tools/firebase.md - Clerk: Pick Clerk if you want ready-made sign-in screens fast, or your data lives somewhere else. Steps: https://buildladder.com/tools/clerk.md ## Step 5 of 16: Choose a database Skip this if your app saves nothing. Otherwise use your sign-in provider if it offers a database. Clerk’s Firebase connection can’t be turned on for new apps. With Clerk, use Supabase, then do “Connect Clerk to Supabase”. This choice is optional. Ask me whether I need it, and skip it if I don’t. Ask me which of these I want: - Supabase: Pick Supabase if your data fits in tables, like customers and their orders, or you already use Supabase for sign-in. Steps (the “Save data with Supabase” part): https://buildladder.com/tools/supabase.md - Firebase: Pick Firebase if your data is a loose mix of records, or you already use Google’s Firebase tools. Steps (the “Save data with Firebase” part): https://buildladder.com/tools/firebase.md ## Step 6 of 16: Build the main feature Read PLAN.md, especially the must-have features and the user journey. Use only the accounts and storage my plan needs. Build the main feature: the one thing people come to my app for. Keep it to the must-haves. Before you change anything, tell me: - what you’ll build, screen by screen - what each person can see and change - what happens when something goes wrong, like a slow connection or an empty form Wait for my yes. Then build it, and keep everything that already works. When you’re done, give me a short list of things to try, and what I should see for each one. It worked when: You can do the main task in PLAN.md. If the task saves something, it is still there after you refresh. If something goes wrong: - Something that used to work is now broken. Say: “This used to work and now it doesn’t. Here’s what I see: … Please fix it without changing anything else.” Or go back to your last saved version. ## Step 7 of 16: Choose how people pay Charging now? Choose a provider and try a test purchase. Switch to live payments only after your app is online. Free app? Skip this step. Charging later? Add checkout to Later in PLAN.md and return here when you need it. This choice is optional. Ask me whether I need it, and skip it if I don’t. Ask me which of these I want: - Stripe: Pick Stripe if you sell physical goods or services, or sell mostly in one country and want the lowest fee per sale. Steps: https://buildladder.com/tools/stripe.md - Paddle: Pick Paddle if you sell software or an online tool worldwide and want tax, fraud checks and buyer support handled for you. Steps: https://buildladder.com/tools/paddle.md - Polar: Pick Polar if you sell software or digital downloads and want a free plan now, with paid plans that lower the fee later. Steps: https://buildladder.com/tools/polar.md ## Step 8 of 16: Try it like a customer This step is mine to do. Walk me through it, one action at a time: - Open your app in a private browser window, so you start signed out. - If your app has accounts, sign up or sign in with a test account. Follow the user journey in PLAN.md from start to finish. - Only if you added checkout, pay with a test card from your payment service’s steps. Check your app shows what was paid for. - If you added accounts, sign out. Sign in as your second test person, and check you can’t see the first person’s things. - Make your browser window as narrow as a phone. Check that every page still reads well. - Write down anything that felt confusing or broken. It worked when: You have a short list of things to fix, in your own words. ## Step 9 of 16: Get an honest review Read PLAN.md and look at my whole web app. First ask me what I noticed when I tried it myself. Then review it against the plan. Check: - the main task in PLAN.md, including checkout only if this version charges - that each person can only see and change their own data - that no secret keys are in my code or my saved Git history, only in .env files that Git ignores - what happens when something goes wrong, like a failed payment or a wrong password - how it looks on a phone List the problems from most to least important. For each one, tell me how to see it and the smallest fix. Say clearly what you checked and what you couldn’t check. Then fix only the first problem, and tell me how to check it’s fixed. Don’t change anything else. It worked when: You have a list of problems in order of importance, and the top one is fixed. Before we move on, check with me: - Can a visitor still finish the main task in your plan? ## Step 10 of 16: Choose where to save your code Your saved versions live only on your computer so far. Put them online in a private GitHub or GitLab repository. Your host puts your web app online from there. The Leaderboard counts GitHub activity, so joining it needs a GitHub account too. Ask me which of these I want: - GitHub: Pick GitHub if you want to follow most guides and examples as written, or work with people who already use it. Steps: https://buildladder.com/tools/github.md - GitLab: Pick GitLab if your team, school or company already uses it, so your code lives where theirs does. Steps: https://buildladder.com/tools/gitlab.md ## Step 11 of 16: Choose a host A host puts your web app online from the repository you just saved, and gives it a public address. You don’t need a domain of your own for this. Ask me which of these I want: - Vercel: Pick Vercel if you built with Next.js and your site is personal. Steps: https://buildladder.com/tools/vercel.md - Netlify: Pick Netlify if this is your first site, or it’s for a business and you want to start free. Steps: https://buildladder.com/tools/netlify.md - Cloudflare Workers: Pick Cloudflare Workers if you expect lots of visitors on a small budget, or your domain is already at Cloudflare. Steps: https://buildladder.com/tools/cloudflare-workers.md ## Step 12 of 16: Choose where to buy a domain A domain is a name of your own, like yourname.com. You need one if you picked Clerk or Paddle, or if Supabase sends your sign-in emails. Otherwise skip this, unless you want a name of your own. This choice is optional. Ask me whether I need it, and skip it if I don’t. Ask me which of these I want: - GoDaddy: Pick GoDaddy if you want the most widely used seller and don’t mind a price that changes after the first year. Steps: https://buildladder.com/tools/godaddy.md - Namecheap: Pick Namecheap if you want a big seller that lets you keep its DNS or switch to your host’s nameservers. Steps: https://buildladder.com/tools/namecheap.md - Cloudflare Registrar: Pick Cloudflare if you host on Cloudflare Workers, or want registry pricing with no markup and don’t mind Cloudflare running your DNS. Steps: https://buildladder.com/tools/cloudflare-registrar.md ## Step 13 of 16: Choose an email service An email service sends email from your own domain. If you picked Supabase for sign-in, choose one now and verify your domain, so Supabase can email anyone. Otherwise skip this until your product sends its own messages. This choice is optional. Ask me whether I need it, and skip it if I don’t. Ask me which of these I want: - Resend: Pick Resend if you want a free plan with no end date, a test address you can send from today, and setup guides for tools like Next.js. Steps: https://buildladder.com/tools/resend.md - Amazon SES: Pick Amazon SES if you already use AWS, or you’ll send a lot and want to pay the lowest price per email of the three. Steps: https://buildladder.com/tools/amazon-ses.md - SendGrid: Pick SendGrid if your team already uses Twilio, or you want your product’s emails and marketing emails in one service. Steps: https://buildladder.com/tools/sendgrid.md ## Step 14 of 16: Get sign-in ready for real people This step is optional. Ask me whether I want it, and skip it if I don’t. This step is mine to do. Walk me through it, one action at a time: - Open “Choose how people sign in” again and open the service you picked. - If you picked Supabase, do “Send real emails with your own email service”. Until then, Supabase only emails people on your Supabase team. - If you picked Clerk, do “Make your own Google keys for launch”. Until then, Google sign-in only works for testing. - In your sign-in service, add your live address to the web addresses it allows. - Open your live app on your phone and sign up as a new person, with an email you haven’t used yet. It worked when: A new person can sign up and sign in on your live app. ## Step 15 of 16: Turn on live payments This step is optional. Ask me whether I want it, and skip it if I don’t. This step is mine to do. Walk me through it, one action at a time: - Open “Choose how people pay” again and open the service you picked. - Work through its “Switch to real payments” step, one line at a time. Your AI tool can explain any line. - Put each live key in your host’s settings, never in your code. - Ask your AI tool to push a new saved version to GitHub or GitLab. Your host then puts your app online again with the live keys. - Test the live checkout the way “Switch to real payments” says. Stripe doesn’t allow buying with your own card. It worked when: Your live app’s checkout uses your live payment account, not the test one. Before we move on, check with me: - Is your payment service’s dashboard in live mode, not test or sandbox? ## Step 16 of 16: Join the Leaderboard This step is optional. Ask me whether I want it, and skip it if I don’t. This step is mine to do. Walk me through it, one action at a time: - Open buildladder.com/profile in your browser. - If it asks you to sign in, select Continue with GitHub. That signs you in and connects GitHub in one go. - If you’re already signed in with email or Google, select Connect GitHub. - On GitHub, check what BuildLadder asks to see, then select Authorize. - If BuildLadder asks about the Newsletter, choose what you want, then select Save and continue. - Your repository is private, so let GitHub count it. On GitHub, select your profile picture, then Your profile. - Above the contribution calendar, select Contribution settings. Turn on Private contributions if it’s off. Others then see how many contributions you made each day, never the details. - Open the Leaderboard on BuildLadder and find your name. New activity can take a while to appear. It worked when: You can find your name on the Leaderboard. Before we move on, check with me: - Does your profile show your GitHub name and picture? If something goes wrong: - Your saved versions don’t show on GitHub’s contribution calendar. GitHub counts a version only when Git uses an email on your GitHub account. Ask your AI tool: “Which email does Git use here, and is it on my GitHub account?” - It says that GitHub account already belongs to another BuildLadder account. You signed in with GitHub before. Sign out, then select Continue with GitHub to use that account.
The steps
- Steps marked AI tool are done by your AI tool when you paste the prompt. The rest are yours.
- Save a version after every step that works.
- If a screen looks different from a step, ask your AI tool where the setting moved.
- Never paste a password or secret key into the chat.
Tick Done when a main step works, including after you finish your chosen tool’s instructions. Optional steps can wait and don’t count toward your progress.
A starter web app on your computer
Set up the web app
Your AI tool creates the starting files for your web app and shows you how to open it in your browser. Nothing goes online yet.
It worked when: You can open a simple starting page in your web browser, on your own computer.
It says a command wasn’t found.
Copy the exact message into the chat and ask: “What does this mean, and how do I fix it?”
The page is blank.
Say: “The page is blank in my browser. Please find out why and fix it.”
Save a working version
Your AI tool saves a version of your web app while it works. A saved version is a copy you can go back to if a later change breaks something. Git, the tool that saves it, calls it a commit.
It worked when: Your AI tool lists your saved version when you ask: “Show me my saved versions.”
It asks for a name and email for Git.
Give your name, and the email on your GitHub account or the one you’ll sign up to GitHub with. If the email doesn’t match, GitHub doesn’t count your saved versions, and neither does the Leaderboard.
Undo a change on purpose
Practice going back before you need to. Your AI tool changes one word, then takes your web app back to your saved version.
It worked when: You see the new word, and then the old word comes back.
Check this step
- Can you name one thing that going back doesn’t undo?
It seems to have lost newer work.
Ask: “Show me all my saved versions.” Newer saved versions are usually still there. Ask it to bring back the newest one.
Your main feature, working
Choose how people sign in
Skip this if people can use your app without an account. Otherwise pick the service people use to make an account and sign in. Skip steps whose title starts “Phone app only”. Leave any step that needs your own domain until “Get sign-in ready for real people”.
Compare them: Supabase, Firebase or Clerk: which sign-in fits my product?
SupabasePick Supabase if your product also saves data in tables, or you already use Supabase for your database.
Supabase, ready for sign-in
Create or open your Supabase project
A Supabase project holds your database and your user accounts. Use one project for both, so your accounts and data stay together.
- If you already made a Supabase project for this product, for its database or its sign-in, open it at supabase.com/dashboard and skip the rest of this list.
- Otherwise, open supabase.com/dashboard and sign in or create an account. Choose the option that creates a new project.
- In the form, choose the organization that will hold it, and enter a name, such as your product’s name.
- Set a strong database password and save it in your password manager.
- If it asks for a region, pick the one closest to the people who will use your product.
- If the form offers access through Supabase’s Data API, keep it on.
- Create the project, then wait until its dashboard is ready.
It worked when: You can see your Supabase project’s dashboard, the page where you manage it.
Check this step
- Is your database password saved somewhere safe?
It says you’ve reached the limit of free projects.
The free plan allows 2 active projects. Pause one you don’t use, or use a project you already have.
Your project is paused.
Open it in the dashboard and unpause it.
Check email sign-in and web addresses
Email sign-in is on by default in Supabase. You check it, and tell Supabase which web addresses people may return to after they sign in.
- In Supabase, open Authentication, then Sign In / Providers, and select Email.
- Check that Email is on. Keep email confirmation on, so people must confirm their address.
- Open Authentication, then URL Configuration. Set Site URL to the address your product opens at on your computer, like http://localhost:3000.
- Under Redirect URLs, add that address followed by /**, like http://localhost:3000/**. This lets Supabase send people to any page in your product.
It worked when: Email shows as on under Sign In / Providers, and your product’s address is saved in URL Configuration.
You don’t know your product’s address.
Ask your AI tool: “What address does my app open at on my computer?”
Working sign-in pages
Add sign-up and sign-in pages
Your AI tool connects your product to Supabase and builds the pages for signing up, signing in and signing out. You paste the keys in yourself.
It worked when: Your product has sign-up and sign-in pages, and your .env file holds the two Supabase values.
Check this step
- Does the sign-up page show the form and the Google button?
- Does your AI tool confirm that Git ignores .env?
It says the API key is invalid, or it can’t reach Supabase.
Copy the values again from the Connect button in your Supabase project. Check for extra spaces, then restart your product.
You can’t find a publishable key.
Open Settings, then API Keys, in your Supabase project. The publishable key starts with sb_publishable_.
Turn on Google sign-in
Google needs to know your product before the Google button works. You make a client ID and a client secret in Google Cloud, then paste them into Supabase.
- In Supabase, open Authentication, then Sign In / Providers, and select Google. Copy the Callback URL shown there.
- In a new tab, open console.cloud.google.com. Create a project for your product, or pick one you already have.
- Open Google’s authentication setup for that Cloud project. If it asks, enter your product’s name and a contact email.
- In the OAuth client list, start creating a client. Choose Web application. A phone app needs this Web client too.
- Under Authorized JavaScript origins, add your product’s address, like http://localhost:3000.
- Under Authorized redirect URIs, paste Supabase’s Callback URL exactly. Then click Create.
- When Google shows the client ID and client secret, copy them into your password manager.
- Back in Supabase’s Google settings, turn Google on, enter the client ID and secret, and save.
- When you put your product online, add its live address under Authorized JavaScript origins, remove the localhost address, and switch your Google app to In production.
It worked when: Google shows as on under Sign In / Providers, and the Google button in your product opens Google’s sign-in screen.
Google shows a redirect_uri_mismatch error.
The redirect URI in Google must match Supabase’s Callback URL exactly. Copy it again, with no extra spaces or slashes. Google says changes can take 5 minutes to a few hours.
Some people can’t sign in with Google.
Google’s Testing status limits access to listed test accounts unless the app only asks for name, email and profile. Other test authorizations expire after seven days. In Google’s authentication setup, check the audience and publishing status before you put your product online.
Google’s screen shows an address ending in supabase.co.
That’s normal at first. A custom domain for your Supabase project, or brand verification under Branding in Google, shows your own name instead.
Phone app only: make sign-in links open your app
A phone app needs its own link that opens the app after sign-in or email confirmation. A web address alone may send people to a browser instead.
- Ask your AI tool: “What URL scheme does my app have in app.json? If there isn’t one, add one, like myapp.”
- In Authentication, then URL Configuration, add your app’s scheme followed by ://** to Redirect URLs, such as myapp://**. Save the change.
- Ask your AI tool to make a development build, so you can test these links on your phone.
- Keep email confirmation on. If a link doesn’t open the app, confirm your email in the browser, then open the app and sign in.
- For native Google sign-in, create an OAuth client in Google Cloud for each phone platform you support. Your AI tool can find the identifiers those forms need.
- In Supabase’s Google settings, add the client IDs separated by commas: the Web ID first, then one for each phone platform. Save the change.
- Tell your AI tool: “This is an Expo app. Follow Supabase’s current Expo docs for deep links and for native Google sign-in. Save the session on the phone the way those docs do.”
It worked when: Redirect URLs lists your app’s scheme, like myapp://**, and Supabase’s Google settings list a client ID for the Web and for each phone platform.
Google sign-in does nothing in Expo Go.
Native Google sign-in needs a development build. Expo’s guide says the Google sign-in library can’t run in Expo Go.
You don’t know your SHA-1 fingerprint.
Ask your AI tool: “Show me the SHA-1 fingerprint for my Android build, for testing and for the Play Store.” Supabase says to add both to Google.
Tested and ready for real people
Make a page for signed-in people only
Pick one page that only signed-in people should see, like a dashboard. Visitors who aren’t signed in get sent to the sign-in page instead.
It worked when: The page opens when you’re signed in, and sends you to sign in when you’re not.
The page opens even when you’re signed out.
Say: “I’m signed out and the protected page still opens. Please find out why and fix it.”
Test sign-up, sign-out and Google
Use your product the way a new person would. Try every way in and out, and check that Supabase saved the accounts.
- Sign up with the email you use for Supabase. Supabase’s built-in email only sends to your Supabase team, and only 2 emails an hour.
- Open the confirmation email and click the link. You should land back in your product.
- Sign out. Then open your page for signed-in people. It should send you to sign in.
- Sign in with your email and password. That page should open.
- Sign out again. Click Continue with Google and pick your Google account.
- In Supabase, open Authentication, then Users. Check that your test sign-ups are listed.
- When you put your product online, add its live address in URL Configuration.
It worked when: Email sign-up, sign-out, sign-in and Google sign-in all work, and your test accounts appear in Supabase.
The confirmation email never arrives.
Check your spam folder. If it isn’t there, wait an hour and try again.
It says “Email address not authorized”.
That address isn’t on your Supabase team. Test with your own address, or do “Send real emails with your own email service”.
The email link opens a page that doesn’t load.
Check Supabase’s Site URL and allowed redirect addresses against the address your product actually opens at. If you changed ports or domains, update those settings.
Send real emails with your own email service
Supabase says its built-in email isn’t for real use. Before real people sign up, you connect your own email service through custom SMTP. The Email concept compares the services.
- Pick an email service, like Resend, Amazon SES or SendGrid, and verify your domain there. Its Tool page has the steps.
- In that service, find its SMTP details: host, port, username and password.
- For Resend, the host is smtp.resend.com, the port is 465, the username is resend, and the password is a Resend API key.
- In Supabase’s authentication settings, open SMTP Settings and turn on custom SMTP.
- For the sender, enter an address on your verified domain that people can reply to, like hello@yourname.com, and your product’s name.
- Enter the host, port, username and password from your email service, then save.
- Supabase then allows 30 emails an hour at first. To send more, raise it under Authentication, then Rate Limits.
- Sign up with an address that isn’t on your Supabase team.
It worked when: An address outside your Supabase team gets the confirmation email, sent from your domain with your sender name.
It still says “Email address not authorized”.
Custom SMTP isn’t saved yet. Open SMTP Settings again, check every field, and click Save.
The emails land in spam.
Finish verifying your domain in your email service. It gives you DNS records to add where you bought the domain.
Sending fails after you saved.
Check the host, port, username and password against your email service’s SMTP page. Make a new password or API key there if you’re not sure.
FirebasePick Firebase if you already use Google’s Firebase tools, or want Google sign-in with no separate Google Cloud setup.
Firebase, ready for sign-in
Create or open your Firebase project
A Firebase project holds your user accounts. Use the same project as your database, so your accounts and data stay together.
- If you already have a Firebase project for this product, open it at console.firebase.google.com and skip the rest of this list.
- Otherwise, go to console.firebase.google.com and sign in with your Google account.
- Choose the option that creates a project. Name it after your product and finish the form.
- On the project overview, start adding a web app. An Expo app uses this web setup too, and it works in Expo Go.
- Enter a nickname for the web app and finish registering it.
It worked when: Your web app is listed under Project settings in your Firebase project.
You don’t see the Web choice.
If the project already has an app, click Add app first. The choices appear after that.
Turn on email sign-in and check web addresses
You choose how people sign in, and which web addresses may use sign-in.
- Open Firebase Authentication from the console menu. If it shows a button to get started, click it.
- Open Sign-in method. Turn on Email/Password, then save.
- Open the Settings tab, then Authorized domains.
- If localhost isn’t in Authorized domains, add it, so sign-in works while your product runs on your computer.
- When you put your product online, add its live address to Authorized domains and remove localhost.
It worked when: Email/Password shows as on under Sign-in method, and Authorized domains lists localhost.
You can’t find Authentication.
Look under Security in the left menu. Older screens may list it under Build.
Working sign-in pages
Add sign-up and sign-in pages
Your AI tool connects your product to Firebase and builds the pages for signing up, signing in and signing out. You paste the config values in yourself.
It worked when: Your product has sign-up and sign-in pages, and your .env file holds your Firebase config values.
Check this step
- Does the sign-up page show the form and the Google button?
- Does your AI tool confirm that Git ignores .env?
The AI tool says the Firebase API key must be secret.
Google says Firebase API keys are safe to include in app code. Your rules protect the data. Admin keys, like service account keys, must stay secret.
It says auth/unauthorized-domain.
Your product’s address isn’t in Authorized domains. Add it on the Settings tab under Authentication, then try again.
Turn on Google sign-in
On a website, Google sign-in only needs turning on in Firebase Authentication. A phone app needs this too.
- In Firebase Authentication, open Sign-in method.
- Find Google in the list of providers and turn it on.
- If it asks for a support email, pick your own address.
- Click Save.
- Open your product and click the Google button. Pick your Google account.
It worked when: You can sign in to your product with Google and land back in it, signed in.
Google sign-in fails in Safari or Firefox after the redirect.
Those browsers block the storage that Firebase’s redirect uses. Say: “Follow Firebase’s redirect best practices and fix Google sign-in for my setup.”
The popup closes and nothing happens.
Your browser may have blocked it. Allow popups for your product’s address, or ask your AI tool to use a redirect instead.
Phone app only: keep people signed in and add Google
Email and password sign-in works in Expo Go with the web app you registered. Keeping people signed in and Google sign-in need a little more on a phone.
- Tell your AI tool: “This is an Expo app using the Firebase JS SDK. Keep people signed in after the app closes, following Expo’s Firebase guide.”
- Google sign-in on a phone needs a development build, because the Google sign-in library can’t run in Expo Go. Ask your AI tool to make one with Expo’s guide.
- In Firebase’s Project settings, register each phone platform you support. Ask your AI tool for the identifiers that platform’s form needs.
- Download the configuration file for each platform you added: google-services.json for Android, GoogleService-Info.plist for iOS. Put it in your product’s folder.
- Tell your AI tool: “Add Google sign-in with a development build, following Expo’s Google authentication guide and Firebase’s current docs. Use the configuration files I added.”
It worked when: People stay signed in after closing the app, and Google sign-in works in a development build.
Check this step
- Does Project settings list each phone platform you added under Your apps?
Google sign-in does nothing in Expo Go.
That’s expected. Ask your AI tool to make a development build and test Google there.
You don’t know your SHA-1 fingerprint.
Ask your AI tool: “Show me the SHA-1 fingerprint for my Android build, for testing and for the Play Store.”
A private page, tested
Make a page for signed-in people only
Pick one page that only signed-in people should see, like a dashboard. Visitors who aren’t signed in get sent to the sign-in page instead.
It worked when: The page opens when you’re signed in, and sends you to sign in when you’re not.
The page opens even when you’re signed out.
Say: “I’m signed out and the protected page still opens. Please find out why and fix it.”
Test sign-up, sign-out and Google
Use your product the way a new person would. Try every way in and out, and check that Firebase saved the accounts.
- Sign up with your own email and a password.
- Sign out. Then open your page for signed-in people. It should send you to sign in.
- Sign in with your email and password. That page should open.
- Sign out again. Click Continue with Google and pick your Google account.
- Open Users in Firebase Authentication. Check that your test sign-ups are listed.
It worked when: Email sign-up, sign-out, sign-in and Google sign-in all work, and your test accounts appear in Firebase.
Sign-up gets blocked after a few tries.
Firebase allows 100 new accounts an hour from one internet connection. Wait a while, then try again.
Password reset emails stop arriving.
The free Spark plan sends 150 password reset emails a day. Check your spam folder, or wait until tomorrow.
ClerkPick Clerk if you want ready-made sign-in screens fast, or your data lives somewhere else.
Clerk, ready for sign-in
Create a Clerk application
A Clerk application is where your user accounts live. You create it in Clerk’s dashboard and choose how people sign in.
- Go to dashboard.clerk.com and create a free account.
- On the dashboard home, start creating an application and enter your product’s name.
- In the sign-in options, turn on email and Google if they’re offered.
- Finish creating the application. Keep its Development instance selected while you build and test.
It worked when: Your new Clerk application shows a Development banner in the dashboard.
You can’t find the sign-in options.
Open User & authentication in the left menu. You can turn options on there at any time.
Turn on email sign-in
Clerk can sign people in with a code or a link sent to their email. You choose how email sign-in works.
- In the Clerk dashboard, open User & authentication.
- Under email, turn on signing up and signing in with an email address.
- Choose verification by an emailed code. You can type the code in while testing.
- If you also want passwords, turn on the password option on the same page.
- Save your changes if the page asks you to.
It worked when: Email sign-in is on in User & authentication, using a code sent by email.
You’re not sure whether to use passwords.
Email codes alone are fine to start. People type a code instead of remembering a password.
Phone app only: turn on the Native API
Clerk’s Expo guide says a phone app needs Clerk’s Native API turned on before sign-in works.
- In the Clerk dashboard, open the Native applications page.
- Turn on the Native API. Clerk notes this opens a way in that skips the CAPTCHA checks browsers get. That’s expected for phone apps.
- In Expo Go, use Clerk’s hosted sign-in screens, which open in a browser inside your app. Clerk’s native screens and a native Google button need a development build.
- A phone app gets only the publishable key, in .env as EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY. Never put the secret key, which starts with sk_, in a phone app.
- Before building for a phone store, return to Native applications and add the identifiers for each phone platform you support. Your AI tool can find them in app.json.
It worked when: The Native applications page shows the Native API as on.
You can’t find Native applications.
Make sure you’re in the right application and in its Development instance. Search Clerk’s docs for “Native applications”.
Clerk’s sign-in screens in your product
Add sign-up and sign-in pages
Your AI tool adds sign-up and sign-in. You fill in the keys your kind of product needs. A phone product uses only the publishable key.
It worked when: Clicking Sign in in your product opens Clerk’s sign-in screen, with email and a Google button.
Check this step
- Does your env file hold the keys your SDK needs, and for Expo only the publishable key?
- Does your AI tool confirm that Git ignores .env?
You lost the secret key.
If you need a new server secret, open Clerk’s API keys page and create a replacement. Keep it out of phone code.
The AI tool wants to run a Clerk setup tool that makes a new app.
Say: “Use the Clerk application I already made. Don’t create a new one.”
Turn on Google sign-in for testing
In development, Clerk lets you use Google without any Google setup. It uses Clerk’s shared Google keys, which are only for testing.
- In the Clerk dashboard, open SSO connections.
- If Google isn’t listed, select Add connection, then For all users, then Google.
- Leave Use custom credentials off for now. Clerk’s shared keys work in your Development instance.
- Open your product and click Sign in. Click the Google button and pick your account.
It worked when: You can sign in to your product with Google while it runs on your computer.
Google’s screen shows an address ending in accounts.dev.
That’s normal in development. Your own domain shows once you set up production.
Google sign-in fails inside another app’s browser.
If Google sign-in is blocked inside an embedded browser, open your site in Chrome or Safari and test again.
A native Google button doesn’t work in your phone app.
It needs a development build, a Web OAuth client and a client for each phone platform you support. Clerk’s Expo Google guide lists the fields.
A private page, tested
Make a page for signed-in people only
Pick one page that only signed-in people should see, like a dashboard. Visitors who aren’t signed in get sent to the sign-in page instead.
It worked when: The page opens when you’re signed in, and sends you to sign in when you’re not.
The page opens even when you’re signed out.
Say: “I’m signed out and the protected page still opens. Please find out why and fix it.”
Test sign-up, sign-out and Google
Use your product the way a new person would. Try every way in and out, and check that Clerk saved the accounts.
- Sign up with your own email. Type the six-digit code Clerk sends you.
- For an extra test account, use an address with +clerk_test, such as jane+clerk_test@example.com, and the code 424242. Clerk sends no real email to it.
- Sign out. Then open your page for signed-in people. It should send you to sign in.
- Sign in again with your email. That page should open.
- Sign out again, then sign in with Google.
- Open Users in Clerk’s dashboard. Check that your test accounts are listed.
It worked when: Email sign-up, sign-out, sign-in and Google sign-in all work, and your test accounts appear in Clerk.
The code email doesn’t arrive.
Check your spam folder. Development sends up to 100 emails a month, so use a +clerk_test address to keep testing.
It says you’ve reached a user limit.
Development instances allow up to 100 users. Delete old test users on the Users page.
Your own Google keys and your database
Make your own Google keys for launch
Do this when you put your product online. Clerk’s shared Google keys only work in development, so you make a production instance with your own Google client ID and secret.
- Use the instance selector at the top of Clerk’s dashboard to set up the production instance. It needs a domain you own. Follow its domain and security checks.
- In the production instance, open SSO connections and select Google. Turn on Enable for sign-up and sign-in and Use custom credentials.
- Copy the Authorized Redirect URI that Clerk shows. Keep Clerk’s Google settings open.
- In Google Cloud, open the Cloud project for your product. In its OAuth client settings, start creating a client.
- Choose Web application. Under Authorized JavaScript origins, add your domain, like https://yourname.com.
- Under Authorized redirect URIs, paste Clerk’s Authorized Redirect URI exactly. Click Create.
- Copy the client ID and secret when Google shows them. Enter them in Clerk’s Google settings and save.
- In Google’s authentication setup, find the app’s publishing status and publish it for real sign-ins. Google may review its name, logo or requested permissions.
- For a website, put the pk_live_ and sk_live_ keys in your host’s settings, then put your site online again.
- For Expo, replace EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY with the pk_live_ value in your build settings and make a new build. Keep sk_live_ only on a separate server, if you have one.
- For a native Google button in a phone app, also create a client for each phone platform you support. Add the phone app on Clerk’s Native applications page too.
It worked when: Google sign-in works on your live site or release build, with your own Google keys.
Check this step
- Does Google’s sign-in screen show your own domain?
Google shows a redirect_uri_mismatch error.
The redirect URI in Google must match the one Clerk gave you exactly. Copy it again, with no extra spaces or slashes.
Some people can’t sign in with Google.
Google’s Testing status limits access to listed test accounts unless the app only asks for name, email and profile. Other test authorizations expire after seven days. In Google’s authentication setup, check the audience and publishing status before you put your product online.
Connect Clerk to Supabase
This lets Supabase’s access rules use your Clerk sign-in. Do it once you have a Supabase project, from “Create or open your Supabase project”.
- In the Clerk dashboard, open the Supabase integration setup at dashboard.clerk.com/setup/supabase.
- Choose your options, then select Activate Supabase integration. Copy the Clerk domain it shows.
- In Supabase, open Authentication, then Sign In / Providers. Select Add provider, choose Clerk, and paste the Clerk domain. Save.
- Tell your AI tool: “I use Clerk for sign-in and Supabase for data, connected with Supabase’s Clerk provider. Follow Clerk’s current Supabase guide. Send Clerk’s session token to Supabase, and write access rules that match each row’s user_id to auth.jwt()->>'sub'.”
It worked when: Supabase’s Sign In / Providers page lists Clerk.
Your AI tool wants to make a Clerk JWT template for Supabase.
Supabase calls that older way deprecated. Say: “Use the Clerk provider in Supabase instead.”
Saving data fails with a permission error.
Say: “Saving fails with Clerk and Supabase. Check that the Supabase client sends Clerk’s session token, and that my access rules use auth.jwt()->>'sub'.”
Choose a database
Skip this if your app saves nothing. Otherwise use your sign-in provider if it offers a database. Clerk’s Firebase connection can’t be turned on for new apps. With Clerk, use Supabase, then do “Connect Clerk to Supabase”.
Compare them: Supabase or Firebase: which database fits my product?
SupabasePick Supabase if your data fits in tables, like customers and their orders, or you already use Supabase for sign-in.
A project and a plan for your tables
Create or open your Supabase project
A Supabase project holds your database and your user accounts. Use one project for both, so your accounts and data stay together.
- If you already made a Supabase project for this product, for its database or its sign-in, open it at supabase.com/dashboard and skip the rest of this list.
- Otherwise, open supabase.com/dashboard and sign in or create an account. Choose the option that creates a new project.
- In the form, choose the organization that will hold it, and enter a name, such as your product’s name.
- Set a strong database password and save it in your password manager.
- If it asks for a region, pick the one closest to the people who will use your product.
- If the form offers access through Supabase’s Data API, keep it on.
- Create the project, then wait until its dashboard is ready.
- If you use Clerk for sign-in, do “Connect Clerk to Supabase” now that the project exists.
It worked when: You can see your Supabase project’s dashboard, the page where you manage it.
Check this step
- Is your database password saved somewhere safe?
It says you’ve reached the limit of free projects.
The free plan allows 2 active projects. Pause one you don’t use, or use a project you already have.
Your project is paused.
Open it in the dashboard and unpause it.
Design your first table
A table holds one kind of thing, like notes or orders, in rows and columns. Your AI tool reads your plan and suggests the simplest tables.
It worked when: Your AI tool has described your tables in plain words and written one SQL file that creates them with access rules.
Check this step
- Does each table match something in your PLAN.md?
- Can you say in your own words who can see each table’s rows?
The plan has more than you expected.
Say: “Keep only what the must-have features need. We can add more later.”
You don’t know what should be private.
Think about who should see each thing. Notes might be private, while a shop’s products are public. Tell your AI tool in plain words.
Protected tables your product can use
Set who can read and write
Row Level Security decides who can see or change each row. You run the SQL your AI tool wrote, then check that every table is protected.
- Read the plain-English comments in the SQL file. If any rule surprises you, ask your AI tool to change it first.
- In your Supabase dashboard, open SQL Editor. Paste the whole file, then click Run.
- Open Table Editor and check that your new tables are there.
- For each table, check that Row Level Security is on and the rules match what you agreed with your AI tool.
- Open Security Advisor. If it lists a problem, copy the warning to your AI tool and ask for the smallest fix.
- Each time you add a table later, check Security Advisor again.
It worked when: Every table shows Row Level Security turned on, with rules you understand.
Check this step
- Does Security Advisor show no errors for your tables?
Running the SQL shows an error.
Copy the whole error message to your AI tool. Ask: “What does this mean, and how do I fix the file?” Then run the fixed file.
A table says Row Level Security is off.
Anyone with your public key could read or change it. Ask your AI tool for SQL that turns it on with the right rules, then run it.
Save and load data in your app
Your AI tool connects your product to the new tables. Things people add get saved in Supabase and show up again when they come back.
It worked when: Your product saves something, and it’s still there after you refresh the page or reopen the app.
Check this step
- In Table Editor, can you see the row you added?
Nothing saves, or the list is always empty.
Row Level Security may be blocking it. Say: “Saving doesn’t work. Check my rules and grants against Supabase’s docs and fix the smallest thing.”
It says “permission denied”.
The table may be missing a grant. Copy the error to your AI tool and ask it to check the grants in Supabase’s Row Level Security guide.
Test with two accounts
Two test accounts prove that your access rules keep each person’s data private.
- Sign in to your product as yourself and add two or three items.
- Sign out. Sign up as a second test person, using another email address you own.
- As the second person, check that the first person’s items don’t appear. Add one item of your own.
- Sign out and sign back in as yourself. Check that you only see your own items.
- Open Table Editor. Check that each row’s owner matches the account that added it.
- Write down anything that looked wrong, and fix it before real people use your product.
It worked when: Each test account sees only its own items.
Check this step
- Did your own items come back after you signed in again?
The second person can see the first person’s items.
Stop and fix this first. Say: “My second test account can see the first account’s data. Check my access rules and code, and fix them.”
The second account’s confirmation email doesn’t arrive.
Add your second address to your Supabase team, or do “Send real emails with your own email service”.
FirebasePick Firebase if your data is a loose mix of records, or you already use Google’s Firebase tools.
A locked database and a plan for your data
Create or open your Firebase project and add a database
Your data lives in a Firebase project, and Cloud Firestore is its database. You start it locked, so no app can read or write until you add rules.
- If you already have a Firebase project for this product, such as one made for sign-in, open it at console.firebase.google.com. Then go straight to Databases & Storage.
- Otherwise, go to console.firebase.google.com and sign in with your Google account.
- Choose the option that creates a project. Name it after your product and finish the form.
- On the project overview, start adding a web app. An Expo app uses this web setup too, and it works in Expo Go.
- Enter a nickname for the web app and finish registering it.
- In the left menu, open Databases & Storage, then Firestore. Click Create database.
- Pick a location close to the people who will use your product.
- Choose Production mode, then click Create. It blocks all reads and writes from apps until you write rules.
It worked when: Your Firebase project has an empty Firestore database, locked until you add rules.
You picked Test mode by mistake.
Test mode lets anyone read and change your data. “Set who can read and write” fixes it, so don’t add real data until then.
You can’t choose a location.
Your project’s location was already set. That’s fine. Carry on with the location shown.
Design your first collection
Firestore saves each record as a document, a small set of named fields. Documents of one kind go in a collection. Your AI tool plans these from PLAN.md.
It worked when: Your AI tool has explained your collections in plain words and written a firestore.rules file with commented rules.
Check this step
- Does each collection match something in your PLAN.md?
- Can you say in your own words who can read each collection?
The plan has more than you expected.
Say: “Keep only what the must-have features need. We can add more later.”
You don’t know what should be private.
Think about who should see each thing. Notes might be private, while a shop’s products are public. Tell your AI tool in plain words.
Protected data your product can use
Set who can read and write
Security Rules decide who can read or change each document. You paste in the rules your AI tool wrote, test them, then publish them.
- Read the plain-English comments in firestore.rules. If any rule surprises you, ask your AI tool to change it first.
- In the Firebase console, open Databases & Storage, then Firestore, then the Rules tab.
- Replace what’s in the editor with the whole firestore.rules file.
- Open Rules Playground. Try reading a document as a signed-in person who does not own it, then start the test. It should be denied.
- Click Publish. New rules can take a minute to work, and up to 10 minutes to reach everything.
- Each time you add a collection later, update firestore.rules and publish it again.
It worked when: Your rules are published in Firestore, and the playground turns away someone who doesn’t own the document.
Publishing shows an error in the rules.
Copy the error and its line number to your AI tool. Ask it to fix firestore.rules, then paste in the new version.
You don’t know what to try in the playground.
Ask your AI tool: “Give me one Rules Playground test that should be denied, step by step.”
Save and load data in your app
Your AI tool connects your product to Firestore. Things people add get saved and show up again when they come back.
It worked when: Your product saves something, and it’s still there after you refresh the page or reopen the app.
Check this step
- In Firestore, can you see the document you added?
It says permission denied, or missing permissions.
Your rules blocked the request. Say: “Firestore is blocking this. Compare my code with firestore.rules and fix the smallest thing.”
The AI tool says the Firebase API key must be secret.
Google says Firebase API keys are safe to include in app code. Your rules protect the data. Admin keys, like service account keys, must stay secret.
Test with two accounts
Two test accounts prove that your Security Rules keep each person’s data private.
- Sign in to your product as yourself and add two or three items.
- Sign out. Sign up as a second test person, using another email address.
- As the second person, check that the first person’s items don’t appear. Add one item of your own.
- Sign out and sign back in as yourself. Check that you only see your own items.
- Open Firestore in the Firebase console. Check that each document has the owner your AI tool designed for it.
- To test without real accounts, ask your AI tool to set up the Firebase Local Emulator Suite. It runs on your computer and needs Java.
It worked when: Each test account sees only its own items.
Check this step
- Did your own items come back after you signed in again?
The second person can see the first person’s items.
Stop and fix this first. Say: “My second test account can see the first account’s data. Check my access rules and code, and fix them.”
Sign-up gets blocked after a few tries.
Firebase allows 100 new accounts an hour from one internet connection. Wait a while, then try again.
Build the main feature
Your AI tool builds the one thing your app is for, from your plan. Come back to this step for each must-have feature in PLAN.md.
It worked when: You can do the main task in PLAN.md. If the task saves something, it is still there after you refresh.
Something that used to work is now broken.
Say: “This used to work and now it doesn’t. Here’s what I see: … Please fix it without changing anything else.” Or go back to your last saved version.
Choose how people pay
Charging now? Choose a provider and try a test purchase. Switch to live payments only after your app is online. Free app? Skip this step. Charging later? Add checkout to Later in PLAN.md and return here when you need it.
Compare them: Stripe, Paddle or Polar: which payment service fits my product?
StripePick Stripe if you sell physical goods or services, or sell mostly in one country and want the lowest fee per sale.
A test account, ready to use
Create your account and a sandbox
A sandbox is Stripe’s practice space. Payments there use fake cards, so you can build and test without moving real money.
- Go to stripe.com and create an account.
- In the Dashboard, open the account picker, then Switch to sandbox, then Create sandbox. Enter a Name and click Create sandbox. A banner at the top shows you are inside it.
- Inside the sandbox, go to More, then Product catalog, and click Add product.
- Enter the Name of what you sell. For the price, pick One time or Recurring, then enter the amount.
- Click Add product to save it. Your AI tool will ask for its price ID later, and that ID is safe to share.
It worked when: Your Stripe sandbox holds one product with its price.
You can’t find Create sandbox.
If you already have a sandbox, open the account picker, then Switch to sandbox, then Manage sandboxes, and click Open beside its name. If Switch to sandbox is missing, check your account access against docs.stripe.com/sandboxes/dashboard/manage.
You’re not sure whether to pick One time or Recurring.
Pick One time for a single payment. Pick Recurring for a monthly or yearly plan. Check PLAN.md for what you chose.
Save your secret key in .env
Your code needs a secret key to talk to Stripe. You paste it into your .env file yourself, so it stays out of your AI tool’s chat and off GitHub.
- Ask your AI tool: “Which file in this folder should hold secret keys, and is it ignored by Git? Don’t ask me for the key.”
- If that file isn’t ignored by Git yet, ask your AI tool to add it to .gitignore before you go on.
- In your Stripe sandbox, open the API keys page. Check the banner says you are still in the sandbox before you copy anything.
- Copy the Secret key, not the publishable key. The secret key starts with sk_test_, which means it only works in your sandbox.
- Open the file your AI tool named, such as .env. Add a line with STRIPE_SECRET_KEY= followed by your key, then save it.
It worked when: A file that Git ignores holds a line starting STRIPE_SECRET_KEY=sk_test_.
You pasted the key into your AI tool’s chat by mistake.
On the API keys page, open the menu next to the key and rotate it. Then save the new key in your file.
Your folder has no .env file.
That’s normal. Ask your AI tool to create an empty one and add it to .gitignore. Then paste the key in yourself.
A working checkout
Add a checkout for one product
Your AI tool adds a Buy button that sends people to Stripe’s own checkout page. Stripe handles the card details, so your code never sees them.
It worked when: The Buy button on your site opens Stripe’s checkout page with your product and price.
Check this step
- Does the back link on Stripe’s page return you to your site?
Your AI tool says your site has no server part.
Ask it to compare two choices in plain words: a Stripe Payment Link, or adding a small server. Pick one before it builds.
You see an error about an API key.
Check the key line in your file has no extra spaces. Then ask your AI tool to restart your site and try again.
Buy it with a test card
Pay for your own product with Stripe’s test card. Nothing is charged, and you see exactly what a customer sees.
- Open your site and click your Buy button.
- On Stripe’s page, enter the card number 4242 4242 4242 4242.
- Use any future date, such as 12/34, and any three-digit CVC. Fill the other fields with anything.
- Click Pay and wait to come back to your thank-you page.
- Look for your test payment in your sandbox Dashboard.
It worked when: You land on your thank-you page, and your sandbox Dashboard shows a successful test payment.
Stripe says the card was declined.
Check you typed 4242 4242 4242 4242 and a date in the future. Real cards don’t work in a sandbox.
You don’t come back to your site after paying.
Tell your AI tool: “After a test payment, I don’t land on my thank-you page. Please find out why.”
React when a payment succeeds
A webhook is a message Stripe sends your site when someone pays. Your site uses it to give buyers what they paid for, even if they close the page early.
It worked when: After a test payment, your site does the one thing you asked, and the terminal running the Stripe CLI shows checkout.session.completed.
The webhook fails with a signature error.
Copy the secret the Stripe CLI printed into your .env file again, then restart your site.
Nothing happens after a payment.
Check the Stripe CLI is still running in its own terminal. Then tell your AI tool what that terminal shows.
Switch to real payments
Real payments use real cards and real money. You make each change yourself, and your AI tool can explain any of them.
- Complete Stripe’s live-account setup in the Dashboard. Provide the business and product details it asks for. Add a payout account so Stripe can send you the money.
- Open your product in the sandbox and click Copy to live mode. Sandbox products don’t work in live mode.
- Open the API keys page for your live account. Use a key with only the access your server needs. Your AI tool can list the permissions without seeing the key.
- In your host’s settings, set STRIPE_SECRET_KEY to the live key and STRIPE_PRICE_ID to the live price ID.
- In the Dashboard, open Workbench, then Webhooks, and click Create an event destination. Stripe asks you to pick Thin or Snapshot, two formats for the event. Ask your AI tool which one your code expects.
- Pick checkout.session.completed, choose Webhook endpoint, and enter your live site’s webhook address.
- Click Reveal secret, then save it in your host’s settings as STRIPE_WEBHOOK_SECRET.
- Don’t test with your own real card in live mode. Stripe’s rules don’t allow it.
It worked when: Your public site has a live checkout, and the live keys are only in your host’s settings.
Check this step
- After your first real sale, does your live webhook show a successful delivery?
Stripe asks for more information about your business.
That’s part of Stripe’s checks. Answer in the Dashboard. Your AI tool can explain what a question means.
Live payments fail but test ones worked.
Check every setting uses live values: the secret key, the price ID and the webhook secret. Then put your site online again.
PaddlePick Paddle if you sell software or an online tool worldwide and want tax, fraud checks and buyer support handled for you.
A test account, ready to use
Create a sandbox account and a product
Paddle’s sandbox is a separate practice account with its own sign-in. Payments there use test cards, so you can build and test without moving real money.
- Open developer.paddle.com/sdks/sandbox and follow the link to the sandbox signup page. This account is only for testing.
- Enter your personal and business details, then click Continue. Follow any email check Paddle asks you to complete.
- Go to Paddle, then Catalog, then Products. Click New product.
- Enter the product name and pick a tax category, then click Save. Standard and SaaS are there for every account.
- On the product’s page, under Prices, click New price. Enter the amount. For a subscription, set the billing period, like Monthly.
- A price with no billing period is a one-time charge. Click Save. Your AI tool will ask for its price ID later, and that ID is safe to share.
It worked when: Your Paddle sandbox account holds one product with its price.
You signed up at paddle.com instead.
That made a live account. Sandbox accounts are separate, so make one from the sandbox signup page too.
You don’t know if Paddle allows what you sell.
Read Paddle’s Acceptable Use Policy before you build. It lists what you can’t sell.
Save your client-side token in .env
Paddle’s checkout runs in your web page using a client-side token. The token is safe in page code, and keeping it in .env makes the switch to real payments easy.
- Ask your AI tool: “Which file in this folder should hold my Paddle settings, and is it ignored by Git? Don’t ask me for any value.”
- If that file isn’t ignored by Git yet, ask your AI tool to add it to .gitignore before you go on.
- In Paddle, go to My account, then Settings, then Authentication. Click the Client-side tokens tab.
- Click New client-side token. Give it a name and a description, then click Save.
- Click the menu button next to the new token and choose Copy. Sandbox tokens start with test_.
- Open the file your AI tool named, such as .env. Add PADDLE_CLIENT_TOKEN= followed by the token, then PADDLE_ENVIRONMENT=sandbox on the next line.
It worked when: A file that Git ignores holds PADDLE_CLIENT_TOKEN and PADDLE_ENVIRONMENT=sandbox.
You can’t find Authentication.
Look under My account, then Settings, in the left menu. If it moved, search Paddle’s docs for “client-side token”.
A working checkout
Add a checkout for one product
Your AI tool adds a Buy button that opens Paddle’s checkout over your page. Paddle handles the card details and the tax, so your code never sees them.
It worked when: The Buy button on your site opens Paddle’s checkout with your product and price, marked Test Mode.
The checkout doesn’t open, or mentions a default payment link.
In Paddle, go to Checkout, then Checkout configuration. Under Default payment link, enter your site’s address and click Save.
The default payment link asks for a domain you don’t have yet.
Paddle’s sandbox does not need domain approval, and its default payment link can use any domain. Carry on with the test payment. You need your own domain only for real payments.
You see a forbidden error.
Sandbox and live values don’t mix. Check the token starts with test_ and PADDLE_ENVIRONMENT says sandbox. Then ask your AI tool to restart your site.
Buy it with a test card
Pay for your own product with Paddle’s test card. Nothing is charged, and you see exactly what a customer sees.
- Open your site and click your Buy button.
- Enter an email address. In the sandbox, emails to Gmail or other outside addresses go to your account’s main email instead.
- Enter the card number 4242 4242 4242 4242, any name, any future expiry date and the CVV 100. Then pay.
- Try once more with the card 4000 0000 0000 0002. The checkout should say the card was declined.
- In Paddle’s sandbox, open Transactions and find the test payment.
It worked when: The 4242 card pays, the 4000 card is declined, and Transactions lists the payment that went through.
A real card is refused.
That’s expected. The sandbox only takes test cards, and live accounts only take real ones.
React when a payment succeeds
A webhook is a message Paddle sends your site when someone pays. Your site uses it to give buyers what they paid for, even if they close the page early.
It worked when: Your site has a webhook route, and your AI tool gave you the web address Paddle should send events to.
Keep: The web address your AI tool gave you, for “Send Paddle’s events to your site”.
Check this step
- Did your AI tool explain how the route checks that each message really came from Paddle?
Your AI tool says your site has no server part.
Ask it to compare two choices in plain words: adding a small server, or a host that runs code for you. Pick one before it builds.
Send Paddle’s events to your site
A notification destination tells Paddle which events to send and where. Its secret key lets your site check that each message really came from Paddle.
- In Paddle, go to Events, then Notifications. Click New destination.
- Give it a name. Keep the notification type as webhook, and paste the web address your AI tool gave you.
- Pick the transaction.paid event, then click Save destination.
- Click the menu button next to your destination and choose Edit destination. Click the copy icon in the secret key field.
- Add PADDLE_WEBHOOK_SECRET= followed by the secret to your .env file and save it. Ask your AI tool to restart your site.
- Make another test payment with the 4242 card.
It worked when: After a test payment, your site does the one thing you asked.
Check this step
- Open the menu next to your destination and choose View logs. Does it show the event was delivered?
The webhook fails with a signature error.
Copy the secret key from Edit destination into your .env file again, then restart your site.
Nothing happens after a payment.
Open View logs for your destination and tell your AI tool what it shows. The sandbox makes 3 attempts within about 2 minutes.
Switch to real payments
Your sandbox doesn’t carry over, so you set things up again in a live account. You make each change yourself, and your AI tool can explain any of them.
- Put your site online first, with terms of service, privacy and refund pages, prices that match Paddle, and a contact email.
- Sign up for a live Paddle account. In Get started, open Verify your account and fill in your personal and business details.
- Submit your domain in My account, then Settings, then Website approval. Live checkouts only open on an approved domain.
- Create your product and price again. Then create a live client-side token, which starts with live_.
- In your host’s settings, set PADDLE_CLIENT_TOKEN, PADDLE_ENVIRONMENT and PADDLE_PRICE_ID to the live token, production and the live price ID. Keep the exact names your AI tool chose, including any public prefix. Then put your site online again so browser code gets the new values.
- Once your domain is approved, go to Checkout, then Checkout configuration, and set the Default payment link to your live site.
- In Events, then Notifications, create a live destination for transaction.paid. Save its secret key in your host’s settings as PADDLE_WEBHOOK_SECRET.
- To test without paying, make a 100% discount and buy with it, as Paddle’s go-live checklist suggests.
It worked when: Your account is verified, and your public site has a live checkout with live values only in your host’s settings.
Check this step
- Does Website approval show your domain as approved?
- Does a purchase with your 100% discount make your site do the one thing you asked?
Verification is taking a while.
It often takes about 10 minutes, but can take longer. Finish anything Paddle asks for in Get started, and check your email.
The live checkout won’t open but the sandbox worked.
Check your domain is approved and every setting in your host uses live values. Then put your site online again.
PolarPick Polar if you sell software or digital downloads and want a free plan now, with paid plans that lower the fee later.
A test account, ready to use
Create a sandbox account and a product
Polar’s sandbox is a separate practice site with its own sign-in. Payments there use fake cards, so you can build and test without moving real money.
- Go to sandbox.polar.sh and create a testing account using a sign-in option shown there.
- Create an organization when asked. It holds your products and customers.
- Open Products and create a new product. Choose a one-time purchase or a subscription, then set a fixed price.
- Save the product. Your AI tool will ask for its product ID later, and that ID is safe to share.
It worked when: Your Polar sandbox organization holds one product with its price.
You signed in at polar.sh instead.
Open the organization switcher and click Go to sandbox. Or type sandbox.polar.sh into your browser.
You don’t know if Polar allows what you sell.
Read Polar’s Acceptable Use Policy before you build. It lists what you can’t sell.
Save your access token in .env
Your code needs a secret access token to talk to Polar. You paste it into your .env file yourself, so it stays out of your AI tool’s chat and off GitHub.
- Ask your AI tool: “Which file in this folder should hold secret keys, and is it ignored by Git? Don’t ask me for the key.”
- If that file isn’t ignored by Git yet, ask your AI tool to add it to .gitignore before you go on.
- In your sandbox organization’s settings, open the area for organization access tokens and create one.
- Give it a name and an expiration date. Scopes set what the token is allowed to do. Ask your AI tool which ones a checkout needs.
- Copy the token. Open the file your AI tool named, such as .env, and add POLAR_ACCESS_TOKEN= followed by the token.
- Add a second line, POLAR_ENVIRONMENT=sandbox, then save the file.
It worked when: A file that Git ignores holds POLAR_ACCESS_TOKEN and POLAR_ENVIRONMENT=sandbox.
You get an error about your token.
Sandbox tokens only work with the sandbox. Check you made it at sandbox.polar.sh, and POLAR_ENVIRONMENT says sandbox.
You pasted the token into your AI tool’s chat by mistake.
In the organization’s settings, revoke that access token and create a new one. Save the new token in your file.
A working checkout
Add a checkout for one product
Your AI tool adds a Buy button that sends people to Polar’s own checkout page. Polar handles the card details and the tax, so your code never sees them.
It worked when: The Buy button on your site opens Polar’s checkout page with your product and price.
Your AI tool says your site has no server part.
Ask it to compare two choices in plain words: a Polar Checkout Link, or adding a small server. Pick one before it builds.
The checkout says the product wasn’t found.
Check POLAR_PRODUCT_ID is the ID from your sandbox product. Products from polar.sh don’t exist in the sandbox.
Buy it with a test card
Pay for your own product with Polar’s test card. Nothing is charged, and you see exactly what a customer sees.
- Open your site and click your Buy button.
- Use the email address you signed up with. The sandbox only sends emails to members of your organization.
- Enter the card number 4242 4242 4242 4242, any future expiry date and any CVC.
- Pay, then wait to come back to your site.
- Look for the new order in your sandbox dashboard.
It worked when: You land back on your site, and your sandbox dashboard shows a successful test order.
You don’t come back to your site after paying.
Tell your AI tool: “After a test payment, I don’t land back on my site. Please find out why.”
React when a payment succeeds
A webhook is a message Polar sends your site when someone pays. Your site uses it to give buyers what they paid for, even if they close the page early.
It worked when: After a test payment, your site does the one thing you asked, and the terminal forwarding your webhooks shows order.paid.
The webhook fails with a signature error.
Check POLAR_WEBHOOK_SECRET in your .env file matches the secret for this endpoint, then restart your site.
Nothing happens after a payment.
Check the forwarding command is still running in its own terminal. Then tell your AI tool what that terminal shows.
Switch to real payments
Your sandbox doesn’t carry over, so you set things up again on polar.sh. You make each change yourself, and your AI tool can explain any of them.
- Finish building first. Polar reviews faster when your product, checkout and webhook work and your site is online.
- Go to polar.sh and create your real account and organization. Create your product again with the same price.
- Open Finance, then Account. Submit your business for approval, verify your ID with a selfie, and connect a payout account. Finish any details Polar asks for, and check the account’s status before you take real payments.
- In your real organization’s settings, create an organization access token. Save it in your host’s settings as POLAR_ACCESS_TOKEN.
- In the same settings, set POLAR_ENVIRONMENT to production and POLAR_PRODUCT_ID to your real product’s ID.
- In Settings, then Webhooks, click Add Endpoint. Enter your live webhook address, choose Raw, set a secret and pick order.paid.
- Save that secret in your host’s settings as POLAR_WEBHOOK_SECRET.
- Don’t test with a real card, because Polar treats it as card testing. Make a 100% discount code instead, so no money moves.
It worked when: Your public site has a live checkout, and the live keys are only in your host’s settings.
Check this step
- Does a purchase with your 100% discount code make your site do the one thing you asked?
You can’t get paid out yet.
Payouts wait for Polar’s review. Polar says initial reviews can take up to 14 days. A payout you request during a review shows as Held for review, then pays out after approval. Later reviews can hold payouts while purchases and renewals continue.
The live checkout fails but the sandbox worked.
Check every setting in your host uses production values: the token, the product ID and the webhook secret. Then put your site online again.
The biggest problems fixed
Try it like a customer
Before anyone else sees it, use your web app the way a new customer would.
- Open your app in a private browser window, so you start signed out.
- If your app has accounts, sign up or sign in with a test account. Follow the user journey in PLAN.md from start to finish.
- Only if you added checkout, pay with a test card from your payment service’s steps. Check your app shows what was paid for.
- If you added accounts, sign out. Sign in as your second test person, and check you can’t see the first person’s things.
- Make your browser window as narrow as a phone. Check that every page still reads well.
- Write down anything that felt confusing or broken.
It worked when: You have a short list of things to fix, in your own words.
Get an honest review
Your AI tool reviews your web app against your plan, including how it keeps accounts, data and keys safe. It fixes the most important problem first. Come back to this step for each problem you want fixed.
It worked when: You have a list of problems in order of importance, and the top one is fixed.
Check this step
- Can a visitor still finish the main task in your plan?
Your code saved and your web app online
Choose where to save your code
Your saved versions live only on your computer so far. Put them online in a private GitHub or GitLab repository. Your host puts your web app online from there. The Leaderboard counts GitHub activity, so joining it needs a GitHub account too.
Compare them: GitHub or GitLab: which should I use?
GitHubPick GitHub if you want to follow most guides and examples as written, or work with people who already use it.
Your code in a private repository
Create a private repository
A repository is your product’s home on GitHub. You make an empty one, so your AI tool can fill it with your files.
- Go to github.com and sign in. If you don’t have an account, go to github.com/signup and follow the prompts. You’ll be asked to check your email.
- In the upper-right corner, click the plus icon, then New repository.
- Check that Owner shows your own username, not an organization.
- Type a Repository name, like my-site. Use letters, numbers, dashes and dots.
- Choose Private.
- Leave the README, .gitignore and license options off. Your product already has files, and an empty repository takes them without a clash.
- Click Create repository.
It worked when: GitHub shows your empty private repository, with a Quick Setup box that holds its address.
Keep: The address in Quick Setup that ends in .git, for “Upload your code with your AI tool”.
It says the name is already taken.
You already have a repository with that name. Pick another name, or open the one you have.
You already ticked README and created the repository.
That’s fine. Tell your AI tool before it uploads, so it gets the README first.
Upload your code with your AI tool
Your AI tool saves a first version (Git calls it a commit), connects your folder to GitHub under the name origin, and pushes your files up.
It worked when: Your product’s files show on your repository page on github.com.
Check this step
- Is .env missing from the file list, as it should be?
The push is rejected.
The repository may already have a README. Tell your AI tool: “The push was rejected. Get what’s on GitHub first, then push again. Don’t force it.”
Git asks for a username and password.
Tell your AI tool: “Set up GitHub CLI and run gh auth login, so I can sign in through my browser.”
You can see .env on GitHub.
Make new keys at each service now, because anyone who can see the repository can read the old ones. Then ask your AI tool to remove .env and add it to .gitignore.
Count your private work on the Leaderboard
The BuildLadder Leaderboard counts work in a private repository only when your GitHub profile shows private contributions. People then see how many contributions you made each day, never your code. Skip this if you’d rather not show that.
- On GitHub, click your profile picture, then Your profile.
- Above the contribution calendar, click Contribution settings.
- Turn on Private contributions if it’s off.
It worked when: Private contributions is turned on in Contribution settings on your GitHub profile.
One change, reviewed and merged
Make a change on a branch
A branch is a copy of your work where you try a change. Main stays as it was until you merge the change in.
It worked when: The branch menu on your repository page lists a new branch with your change, and main is unchanged.
The change went straight onto main.
Tell your AI tool: “That went onto main. Move the change to a new branch, and put main back how it was.” Do this before you push.
Open a pull request
A pull request asks to merge your branch into main. It shows every line that changed, so you and a reviewer can check it first.
- On GitHub, go to the main page of your repository.
- In the yellow banner above the file list, click Compare & pull request. If there’s no banner, choose your branch in the branch menu first.
- Check that base is main and compare is your new branch.
- Type a title that says what changed, and a short description of why.
- Click Create pull request.
It worked when: You see a pull request page with your title and a Files changed tab.
Check this step
- Open Files changed. Do you see only the change you asked for?
Files changed shows things you didn’t ask for.
Tell your AI tool: “The pull request has changes I didn’t ask for. Explain each one, and undo the ones we don’t need on this branch.”
Get the change reviewed
A review is a second look before a change reaches main. Your AI tool can read the whole change and list problems in plain words.
It worked when: Your AI tool lists problems, most serious first, or says that nothing needs fixing.
Check this step
- Do you understand each problem in the list?
- Are the fixes you chose now in the pull request?
The review lists something you don’t understand.
Ask your AI tool: “Explain that problem as if I’ve never coded. What could go wrong for a visitor?”
Merge it into main
Merging brings the branch’s change into main. If a host puts your site online from main, your change goes online at this moment.
- Under your repository name, click Pull requests, then open yours.
- Scroll to the bottom and click Merge pull request.
- Click Confirm merge.
- GitHub offers to delete the branch. You can, because its change is now in main.
- Tell your AI tool: “I merged the pull request. Switch to main and get the latest version from origin.”
It worked when: The pull request shows as merged, and main on GitHub has your change.
Check this step
- Did your AI tool say it switched to main?
You can’t click Merge pull request, because of conflicts.
Main changed in the same lines since you made the branch. Tell your AI tool: “My pull request has conflicts. Bring main into my branch, show me each clash, and fix it with me.”
GitLabPick GitLab if your team, school or company already uses it, so your code lives where theirs does.
Your code in a private project
Create a private project
On GitLab, your code’s online home is called a project. You make an empty one, so your AI tool can fill it with your files.
- Go to gitlab.com and sign in. If you don’t have an account, go to gitlab.com/users/sign_up and follow the prompts.
- In the upper-right corner, select Create new, the plus icon, then New project/repository.
- Select Create blank project.
- Type a Project name, like my-site. Next to it, check that the address uses your own username.
- Under Visibility Level, choose Private.
- Leave Initialize repository with a README off. Your product already has files, and an empty project takes them without a clash.
- Select Create project.
It worked when: GitLab shows your empty private project, with a page that explains how to add your files.
Keep: The address that ends in .git, under Code or on the empty project page, for “Upload your code with your AI tool”.
The address uses a group name, not your username.
Pick your username in the address list. On the free plan, a private group is limited to five people, while your personal projects are not.
GitLab offers you a trial of a paid plan.
You don’t need it. The free plan is enough to save your code and merge changes.
Upload your code with your AI tool
Your AI tool saves a first version (Git calls it a commit), connects your folder to GitLab under the name origin, and pushes your files up.
It worked when: Your product’s files show on your project page on gitlab.com.
Check this step
- Is .env missing from the file list, as it should be?
The push is rejected.
The project may already have a README. Tell your AI tool: “The push was rejected. Get what’s on GitLab first, then push again. Don’t force it.”
Your password doesn’t work when Git asks for it.
With two-step sign-in turned on, GitLab won’t take your password here. Tell your AI tool: “Set up the GitLab CLI and run glab auth login with the browser sign-in.”
You can see .env on GitLab.
Make new keys at each service now, because anyone who can see the project can read the old ones. Then ask your AI tool to remove .env and add it to .gitignore.
One change, reviewed and merged
Make a change on a branch
A branch is a copy of your work where you try a change. Main stays as it was until you merge the change in.
It worked when: Your project’s Branches page, under Code, lists a new branch with your change, and main is unchanged.
The change went straight onto main.
Tell your AI tool: “That went onto main. Move the change to a new branch, and put main back how it was.” Do this before you push.
Open a merge request
A merge request asks to merge your branch into main. GitHub calls the same thing a pull request. It shows every changed line, so you can check it first.
- In your project’s left sidebar, select Code, then Merge requests.
- In the upper-right corner, select New merge request.
- Choose your new branch as the source branch and main as the target branch.
- Select Compare branches and continue.
- Type a title that says what changed, and a short description of why.
- Select Create merge request.
It worked when: You see a merge request page with your title and a Changes tab.
Check this step
- Open the Changes tab. Do you see only the change you asked for?
It says a merge request already exists for this branch.
Each branch can have only one open merge request. Follow the link GitLab shows to open it.
The changes include things you didn’t ask for.
Tell your AI tool: “The merge request has changes I didn’t ask for. Explain each one, and undo the ones we don’t need on this branch.”
Get the change reviewed
A review is a second look before a change reaches main. Your AI tool can read the whole change and list problems in plain words.
It worked when: Your AI tool lists problems, most serious first, or says that nothing needs fixing.
Check this step
- Do you understand each problem in the list?
- Are the fixes you chose now in the merge request?
The review lists something you don’t understand.
Ask your AI tool: “Explain that problem as if I’ve never coded. What could go wrong for a visitor?”
Merge it into main
Merging brings the branch’s change into main. If a host puts your site online from main, your change goes online at this moment.
- In your project’s left sidebar, select Code, then Merge requests, and open yours.
- Scroll to the merge section under the description.
- Leave Delete source branch on if you see it. The branch’s change will be in main, so you won’t need the branch.
- Select Merge. If you see Set to auto-merge instead, select that. It merges when all required checks pass, including any required approvals.
- Wait until GitLab shows Merged, then tell your AI tool: “I merged the merge request. Switch to main and get the latest version from origin.”
It worked when: The merge request shows as merged, and main on GitLab has your change.
Check this step
- Did your AI tool say it switched to main?
GitLab says the branch has conflicts.
Main changed in the same lines since you made the branch. Tell your AI tool: “My merge request has conflicts. Bring main into my branch, show me each clash, and fix it with me.”
Choose a host
A host puts your web app online from the repository you just saved, and gives it a public address. You don’t need a domain of your own for this.
Compare them: Vercel, Netlify or Cloudflare: which host fits my site?
VercelPick Vercel if you built with Next.js and your site is personal.
Your site online
Check your product before you put it online
Your host puts your product online from GitHub or GitLab, where your code is saved. This step checks that no keys went up with the code, and lists the settings your host will need.
It worked when: You have a list of the setting names your product needs, and your saved code holds no keys.
Keep: You need the list of setting names in “Add your secret settings”.
Check this step
- Open your repository on GitHub or GitLab. Is .env missing from the file list?
Your AI tool says the folder isn’t on GitHub or GitLab yet.
Save your code to GitHub or GitLab first. Their tool pages have the steps. Then do this step again.
Your AI tool found a key in your saved history.
Make a new key in that service’s dashboard and delete the old one. Then ask your AI tool to help remove the old key from the history.
Create your account and connect your repository
You make a Vercel account and point it at your GitHub or GitLab repository. Vercel reads your code and fills in most settings for you.
- Go to vercel.com and sign up. Choose to sign up with GitHub or GitLab, whichever holds your code, so the two accounts connect.
- If it asks for a plan, choose Hobby only for personal, non-commercial use. Business use needs Pro, even before your first sale.
- From your dashboard, open the option that creates a new project, then choose to import a code repository.
- If Vercel asks you to connect a Git account, pick GitHub or GitLab and sign in there.
- If GitHub asks what Vercel may see, you can allow just this one repository. On GitLab, you need to be the project’s Owner or a Maintainer.
- Under Import Git Repository, select Import next to your repository.
- On the setup screen, keep the framework Vercel found. Don’t press Deploy yet.
It worked when: Vercel’s setup screen shows your repository’s name, with your framework filled in.
Keep: Stay on the setup screen. “Add your secret settings” starts there.
Your repository isn’t in the list.
Use the account menu at the top left of the list. Pick your personal GitHub or GitLab account.
It says it can’t deploy a private repository from an organization or group.
The free Hobby plan can’t deploy a private repository owned by a GitHub organization or a GitLab group. Move it to your personal account, or make it public.
Add your secret settings
Your keys stay off GitHub and GitLab, so Vercel needs its own copy. You type them into Vercel yourself.
- If your list of setting names was empty, just press Deploy.
- On the setup screen, open Environment Variables.
- For each name on your list, type the name exactly. Then copy its value from your .env file.
- Choose Secret as the type for secret keys. Public values can stay as Config.
- When every name is added, press Deploy.
- To change these later, open your project and select Environment Variables in the sidebar.
It worked when: Every name from your list is added in Vercel, and your first deploy has started.
Check this step
- Count the names in Vercel. Does the number match your list?
- Is every secret key set to the Secret type?
You don’t have a value for one of the names.
Ask your AI tool where that value comes from. It’s usually in another service’s dashboard, like your payments or database account.
A value you changed isn’t working on the live site.
Changes only apply to new deploys. Deploy again, or push your next change, so Vercel uses the new value.
Open your live site on your phone
Vercel builds your site and gives it a public address. Opening it on your phone shows that other people can reach it too.
- Watch the build. When it finishes, Vercel shows your new site.
- Find your site’s main address on your project page. It ends in .vercel.app.
- Open that address on your phone.
- Try the main thing your site does, from start to finish.
- Write the address into PLAN.md so you can find it later.
It worked when: Your site opens on your phone at an address ending in .vercel.app.
Check this step
- Does the main feature work on your phone too?
The build failed.
Open the failed deploy in Vercel. Copy the build log into your AI tool and ask: “What does this mean, and how do I fix it?”
A Vercel sign-in page appears.
That link is for one single deploy, and Vercel can keep those private. Open the main address on your project page instead.
Something works on your computer but not online.
Check that every setting name is added in Vercel. Then tell your AI tool what you see and ask it to find the difference.
Connect your own domain
Skip this step if you don’t want your own domain yet. A domain is a name like yourname.com that visitors can type instead of the .vercel.app address.
- No domain yet? You can search for one and buy it at vercel.com/domains. Then add it in your project’s Settings, under Domains.
- For a domain you bought elsewhere, open Settings, then Domains, and select Add Existing.
- Type your domain, like yourname.com. If Vercel offers to add the www version too, accept.
- Vercel now shows the DNS records to add: an A record for yourname.com and a CNAME record for www. Copy the values Vercel shows you.
- Sign in where you bought the domain. Open its DNS settings and add each record exactly as Vercel shows it.
- Go back to Domains in Vercel and wait for it to say the domain is ready. This often takes under an hour.
- Update the address in PLAN.md to your new domain.
It worked when: Your site opens at your own domain, with a lock icon in the address bar.
Check this step
- Try it with and without www. Do both work?
Vercel says the domain’s setup is invalid.
Look for an older record with the same name at your domain seller. Remove the old one and keep only Vercel’s.
The values don’t match a guide you read online.
Use the values on your own Domains page. Vercel gives each project its own CNAME value, so other people’s may differ.
It still doesn’t work after a day.
Some changes take up to two days. If it’s longer, take screenshots of your DNS settings and Vercel’s Domains page. Ask your AI tool to compare them.
NetlifyPick Netlify if this is your first site, or it’s for a business and you want to start free.
Your site online
Check your product before you put it online
Your host puts your product online from GitHub or GitLab, where your code is saved. This step checks that no keys went up with the code, and lists the settings your host will need.
It worked when: You have a list of the setting names your product needs, and your saved code holds no keys.
Keep: You need the list of setting names in “Add your secret settings”.
Check this step
- Open your repository on GitHub or GitLab. Is .env missing from the file list?
Your AI tool says the folder isn’t on GitHub or GitLab yet.
Save your code to GitHub or GitLab first. Their tool pages have the steps. Then do this step again.
Your AI tool found a key in your saved history.
Make a new key in that service’s dashboard and delete the old one. Then ask your AI tool to help remove the old key from the history.
Create your account and connect your repository
You make a Netlify account and point it at your GitHub or GitLab repository. Netlify reads your code and fills in the build settings.
- Go to netlify.com and sign up. Signing up with GitHub or GitLab, whichever holds your code, keeps things simple.
- On your Projects page, select Add new project, then choose Import an existing project.
- Choose GitHub or GitLab. Follow the prompts to let Netlify see your repository.
- Pick your repository from the list.
- Keep the build settings Netlify fills in. It detects most frameworks.
- Select Publish at the bottom to start.
It worked when: Netlify starts building your site, and you see a page for your new project.
The first build failed.
That’s fine if your product needs secret settings. “Add your secret settings” adds them and starts a new deploy.
Your repository isn’t in the list.
Netlify may only see some of your repositories. Follow the prompt to give it access to this one.
Your repository belongs to an organization or a group.
Netlify’s free plan does not include organization-owned private repositories. Use a repository under your own GitHub username instead.
Add your secret settings
Netlify doesn’t read your .env file when it builds, so it needs its own copy. You type the keys in yourself.
- If your list of setting names was empty, skip this step.
- In your project, go to Project configuration, then Environment variables.
- Add each name on your list exactly. Copy its value from your .env file.
- You can import your .env file here instead. Do that only if it holds just this product’s settings.
- Go to your project’s Deploys page and start a new deploy, so the site uses them. The button may say Trigger deploy.
It worked when: Every name from your list is added in Netlify, and a new deploy is running.
Check this step
- Count the names in Netlify. Does the number match your list?
You don’t have a value for one of the names.
Ask your AI tool where that value comes from. It’s usually in another service’s dashboard, like your payments or database account.
You’re worried about using up credits.
Only live updates use credits. Previews are free. Save small changes up and put them online together.
Make it public and check it on your phone
Some new Netlify projects start private, so only you can see them. You make it public if needed, then open it on your phone like a visitor.
- Wait for the deploy to finish. Your address ends in .netlify.app.
- If you see a Make public button, select it. It appears after your first successful deploy, and only when your team keeps new projects private.
- There, you can also change the project name. That changes the .netlify.app address too.
- Open the address on your phone, without signing in to Netlify.
- Try the main thing your site does, from start to finish.
- Write the address into PLAN.md so you can find it later.
It worked when: Your site opens on your phone at an address ending in .netlify.app, without signing in.
Check this step
- Does the main feature work on your phone too?
Your phone shows a page saying you don’t have access.
The project is still private. Select Make public, or go to Project configuration, then General, then Visitor access.
The build failed.
Open the failed deploy on the Deploys page. Copy the build log into your AI tool and ask: “What does this mean, and how do I fix it?”
Your site shows “Site not available”.
Your free credits for this month are used up, so all your sites are paused. They come back when credits reset next month, or on a paid plan.
Connect your own domain
Skip this step if you don’t want your own domain yet. A domain is a name like yourname.com that visitors can type instead of the .netlify.app address.
- In your project, go to Domain management. If you see Production domains, open it.
- Use the option to add a custom domain. Choose an existing name if you already own it, or the purchase option to buy one through Netlify.
- Type your domain and follow the prompts. A domain bought through Netlify is set up for you.
- For a domain bought elsewhere, Netlify shows DNS records. Each one tells the internet where to send your visitors.
- Sign in where you bought the domain. Open its DNS settings and add each record exactly as Netlify shows it.
- If Netlify suggests the www version as your main address, accept. When your DNS stays with your domain seller, the www version loads faster.
- Update the address in PLAN.md to your new domain.
It worked when: Your site opens at your own domain, with a lock icon in the address bar.
Check this step
- Try it with and without www. Do both work?
The domain doesn’t work yet.
DNS changes take time to reach everyone. Wait and check again. Compare your records with the ones Netlify shows in Domain management.
It still doesn’t work after two days.
Look for an older record with the same name at your domain seller. Remove it, or ask your AI tool to compare screenshots of both dashboards.
Cloudflare WorkersPick Cloudflare Workers if you expect lots of visitors on a small budget, or your domain is already at Cloudflare.
Your code ready for Cloudflare
Check your product before you put it online
Your host puts your product online from GitHub or GitLab, where your code is saved. This step checks that no keys went up with the code, and lists the settings your host will need.
It worked when: You have a list of the setting names your product needs, and your saved code holds no keys.
Keep: You need the list of setting names in “Add your secret settings”.
Check this step
- Open your repository on GitHub or GitLab. Is .env missing from the file list?
Your AI tool says the folder isn’t on GitHub or GitLab yet.
Save your code to GitHub or GitLab first. Their tool pages have the steps. Then do this step again.
Your AI tool found a key in your saved history.
Make a new key in that service’s dashboard and delete the old one. Then ask your AI tool to help remove the old key from the history.
Get it ready for Cloudflare
Cloudflare Workers needs a small settings file in your product before it can put it online. Adding it now keeps the dashboard steps simple.
It worked when: Your repository has a Wrangler settings file, and your site still works on your computer.
Check this step
- Open your repository on GitHub or GitLab. Is there a file whose name starts with wrangler?
It says your framework isn’t supported.
Ask: “Which Cloudflare framework guide fits my product? Explain the choices in plain words.” If none fit, Vercel or Netlify may be simpler.
Your site online
Create your account and connect your repository
You make a Cloudflare account and point it at your GitHub or GitLab repository. Cloudflare then builds your site from it.
- Go to dash.cloudflare.com and create an account.
- In the dashboard, go to Workers & Pages and select Create application.
- Choose GitHub or GitLab, whichever holds your code. If asked, sign in there and let Cloudflare see your repository. On GitLab, Cloudflare’s access shows up under the name Cloudflare Pages.
- Pick your repository from the list.
- Check the build command. Ask your AI tool which one your product uses, often npm run build. Leave the deploy command as it is.
- Select Save and Deploy.
It worked when: Cloudflare starts building your site, and you see a page for your new Worker.
The first build failed.
That’s fine if your product needs secret settings. “Add your secret settings” adds them and starts a new build.
Cloudflare opened a pull request on GitHub.
That means it couldn’t find your Wrangler file. Ask your AI tool to explain the pull request before you accept it.
Your repository isn’t in the list.
Cloudflare may only see some of your repositories. On GitHub, open Settings, then Applications. Select Configure beside Cloudflare Workers and Pages, and add this repository under Repository access.
Add your secret settings
Cloudflare keeps settings in two places. Some are used while the site builds, others while it runs. Your list of setting names says which is which.
- If your list of setting names was empty, skip this step.
- Open your Worker, then Settings. Under Variables and Secrets, select Add.
- For each setting used while the site runs, type the name exactly and copy the value from your .env file.
- Pick Secret as the Type for secret keys. Then select Deploy.
- For settings used while building, open your Worker’s build settings. Add them under Build variables and secrets.
- Start a new build so it uses them. You can retry the last build, or push your next change.
It worked when: Every name from your list is added in the right place, and a new build is running.
Check this step
- Count the names in both places. Does the total match your list?
- Is every secret key set to the Secret type?
You don’t have a value for one of the names.
Ask your AI tool where that value comes from. It’s usually in another service’s dashboard, like your payments or database account.
A setting you added has disappeared.
Ask your AI tool to check that keep_vars is true in your Wrangler file. Then add the setting again.
Open your live site on your phone
When the build finishes, Cloudflare gives your site a public address. Opening it on your phone shows that other people can reach it too.
- Wait for the build to finish.
- Find your site’s address on your Worker’s page. It ends in workers.dev.
- Open that address on your phone.
- Try the main thing your site does, from start to finish.
- Write the address into PLAN.md so you can find it later.
It worked when: Your site opens on your phone at an address ending in workers.dev.
Check this step
- Does the main feature work on your phone too?
The build failed.
On your Worker’s Deployments tab, open View build history. Copy the build log into your AI tool and ask: “What does this mean, and how do I fix it?”
You see Error 1102.
Your site needed more computer time per visit than the free plan allows. Ask your AI tool if pages can be made ahead of time.
You see Error 1027.
Today’s free requests are used up. The count resets at midnight UTC. The Workers Paid plan removes the daily limit.
Connect your own domain
Skip this step if you have no domain of your own. Cloudflare can only connect a domain it manages. One bought from Cloudflare is ready, so skip the actions marked “Bought elsewhere”.
- Bought elsewhere: in the Cloudflare dashboard, go to Domains and select Onboard a domain. Type your domain and pick the Free plan.
- Bought elsewhere: Cloudflare scans your DNS records. Compare its list with the records at your domain seller and add any that are missing. Include the MX records your email needs.
- Bought elsewhere: at your domain seller, look for DNSSEC. If it is on, turn it off before you change nameservers.
- Bought elsewhere: Cloudflare gives you two nameservers. Replace the old ones at your domain seller with these two, then wait until Cloudflare shows Active.
- Open your Worker, then Settings, then Domains & Routes. Select Add, then Custom Domain.
- Type your domain and select Add Custom Domain. Do it again for the www version.
- Update the address in PLAN.md to your new domain.
It worked when: Your site opens at your own domain, with a lock icon in the address bar.
Check this step
- Try it with and without www. Do both work?
DNSSEC was on at your domain seller.
Turn it off there, or remove its old DS record, and wait for that record’s TTL to expire before you change nameservers. To turn DNSSEC on again later, open your domain in Cloudflare, then DNS, then Settings, and click Enable DNSSEC. Add the new DS values it shows at your domain seller. Never restore the old values.
Email stopped arriving at your domain.
An email record didn’t come across. Ask your email service which records you need. Add them under your domain’s DNS records in Cloudflare.
Cloudflare still says the domain is pending.
Check that the nameservers at your domain seller match Cloudflare’s two exactly. Remove any old ones.
Only one of yourname.com and www.yourname.com works.
Add the missing one as a second Custom Domain on your Worker.
Choose where to buy a domain
A domain is a name of your own, like yourname.com. You need one if you picked Clerk or Paddle, or if Supabase sends your sign-in emails. Otherwise skip this, unless you want a name of your own.
Compare them: GoDaddy, Namecheap or Cloudflare: where should I buy a domain?
GoDaddyPick GoDaddy if you want the most widely used seller and don’t mind a price that changes after the first year.
A domain you own
Choose a name
Your AI tool suggests short names for your site and explains the endings, like .com. You choose. Nothing is bought in this step.
It worked when: You have a short list of names, and one you like isn’t taken.
Check this step
- Can you say the name out loud and have a friend spell it right?
- Do you know the price for each year after the first?
Every name you like is taken.
Try adding a short word, like get or app, or try another ending. Ask your AI tool for five more.
Buy it on GoDaddy
You search for the name on GoDaddy, add it to your cart and pay. Domain privacy, which hides your contact details from public lookups, is included free.
- Go to godaddy.com/domains. Type your name into the domain search bar and search.
- Find the exact name in the results. Select it and add it to your cart.
- In the cart, check the term and the price for each year after the first. Some deals need you to buy more than one year.
- If the cart has extras you didn’t choose, remove them. Your host already gives you hosting and HTTPS.
- Check out and pay. Use an email address you check, because GoDaddy sends important messages there.
- Open your Domain Portfolio and make sure auto-renew is on for the domain, so it doesn’t expire.
It worked when: Your new domain is listed in your GoDaddy Domain Portfolio.
Check this step
- Is the domain spelled right?
- Is auto-renew on?
The price for next year is much higher than this year.
That’s the renewal price. It’s normal for a first-year deal to end. Compare sellers on the Domains page in Concepts before you pay.
Your site at your own domain
Add your host’s records
DNS records tell the internet where to send people who type your domain. Your host shows which records to add, and you type them into GoDaddy. On Cloudflare Workers, do “Cloudflare Workers only: use Cloudflare’s nameservers” instead.
- In your host’s steps, do “Connect your own domain” until it shows the records to add. Keep that page open.
- Sign in to GoDaddy and open your Domain Portfolio. Select your domain to open its Domain Settings page, then select DNS.
- For each record your host shows, select Add New Record and pick the Type, like A or CNAME.
- In the Name box, type @ for yourname.com, or www for www.yourname.com. Paste the value exactly as your host shows it, then select Save.
- If a record with the same name and type is already there, edit it to your host’s value instead of adding a second one.
It worked when: Your host’s records are listed under DNS in GoDaddy.
Check this step
- Does each record in GoDaddy match your host’s page letter by letter?
- Is there only one record of each type for @ and for www?
GoDaddy won’t save a CNAME record with the name @.
GoDaddy does not allow @ as a CNAME name. Use your host’s A record for yourname.com. For a subdomain such as www, use the record type and value your host gives you.
Your host still says it’s waiting.
Changes often work within an hour and can take up to 48 hours. Wait, then check again.
Cloudflare Workers only: use Cloudflare’s nameservers
Cloudflare Workers connects only domains whose DNS Cloudflare runs. So you point GoDaddy at Cloudflare’s two nameservers and add no records in GoDaddy. Skip this step on any other host.
- In Cloudflare’s steps, do “Connect your own domain” until it gives you two nameservers. Keep that page open.
- Copy every email DNS record from GoDaddy into Cloudflare.
- Sign in to GoDaddy and open your Domain Portfolio. Select your domain to open its Domain Settings page, then select DNS.
- Open DNSSEC. If it is on, select Turn Off DNSSEC, then Remove.
- For third-party DNS, open DS Records and delete the old DS record instead.
- Wait for the old DS record’s TTL to expire.
- Select Nameservers, then I’ll use my own nameservers. Paste Cloudflare’s two, then select Save and Continue.
- After Cloudflare shows Active, open DNS, then Settings, in Cloudflare and select Enable DNSSEC.
- Add Cloudflare’s new DS values under DS Records in GoDaddy.
It worked when: Cloudflare shows your domain as Active, and GoDaddy lists Cloudflare’s two nameservers.
You can’t find the DNSSEC or DS Records controls.
Read GoDaddy’s help pages on DNSSEC and DS records, or ask its support, before you change nameservers.
Check your records
Your AI tool looks up your domain’s records from your computer and compares them with what your host expects. You fix anything it finds in GoDaddy.
It worked when: Your AI tool reports that your records match, and your site opens at your own domain.
Check this step
- Open your domain on your phone. Is there a lock icon in the address bar?
- Try it with and without www. Do both work?
The site loads but there’s no lock icon yet.
Your host makes the HTTPS certificate after your records point to it. Give it an hour, then check again.
It still doesn’t work after two days.
Read “Why isn’t my domain working yet?” in Answers. Then ask your AI tool to compare screenshots of your host and GoDaddy.
NamecheapPick Namecheap if you want a big seller that lets you keep its DNS or switch to your host’s nameservers.
A domain you own
Choose a name
Your AI tool suggests short names for your site and explains the endings, like .com. You choose. Nothing is bought in this step.
It worked when: You have a short list of names, and one you like isn’t taken.
Check this step
- Can you say the name out loud and have a friend spell it right?
- Do you know the price for each year after the first?
Every name you like is taken.
Try adding a short word, like get or app, or try another ending. Ask your AI tool for five more.
Buy it on Namecheap
You search for the name on Namecheap, add it to your cart and pay. Domain privacy, which hides your contact details from public lookups, is free and on by default for eligible endings.
- Go to namecheap.com. Type your name into the search box and search.
- Next to the exact name, select Add to Cart. Then select View items, then Checkout.
- In the cart, check the price for each year after the first. Check too that your ending allows domain privacy, because some endings do not hide your contact details.
- Skip the extras offered, like web hosting, SSL or email trials. Your host already gives you hosting and HTTPS.
- Select Confirm Order.
- Fill in your contact details with an email address you check. Select Continue, then Pay Now.
- Turn on auto-renew for the domain. Namecheap only renews it if you choose to.
- If you pay by card, also open Profile, then Billing, and tick Use for auto-renewal next to your card.
It worked when: Your new domain is listed under Domain List in your Namecheap account.
Check this step
- Is the domain spelled right?
- Is auto-renew on?
The price for next year is much higher than this year.
That’s the renewal price. It’s normal for a sale to end. Compare sellers on the Domains page in Concepts before you pay.
Your site at your own domain
Add your host’s records
DNS records tell the internet where to send people who type your domain. Your host shows which records to add, and you type them into Namecheap. On Cloudflare Workers, do “Cloudflare Workers only: use Cloudflare’s nameservers” instead.
- In your host’s steps, do “Connect your own domain” until it shows the records to add. Keep that page open.
- Sign in to Namecheap. Select Domain List in the left sidebar, then select Manage next to your domain.
- Open the Advanced DNS tab. In the Host Records section, select Add New Record and pick the Type, like A Record or CNAME Record.
- In Host, type @ for yourname.com, or www for www.yourname.com. Paste the value exactly as your host shows it, then select the green check icon to save.
- If a record with the same host and type is already there, edit it or remove it, so only your host’s record is left.
It worked when: Your host’s records are listed under Host Records in Namecheap.
Check this step
- Does each record in Namecheap match your host’s page letter by letter?
- Is there only one record of each type for @ and for www?
Advanced DNS won’t let you add records.
Records only work there while the domain uses Namecheap’s DNS. On the Manage page, under Nameservers, choose Namecheap BasicDNS, then try again.
Your host still says it’s waiting.
Changes often work within an hour and can take up to 48 hours. Wait, then check again.
Cloudflare Workers only: use Cloudflare’s nameservers
Cloudflare Workers connects only domains whose DNS Cloudflare runs. So you point Namecheap at Cloudflare’s two nameservers and add no records in Namecheap. Skip this step on any other host.
- In Cloudflare’s steps, do “Connect your own domain” until it gives you two nameservers. Keep that page open.
- Copy every email DNS record from Namecheap into Cloudflare.
- Sign in to Namecheap. Select Domain List in the left sidebar, then select Manage next to your domain.
- Open Advanced DNS, then DNSSEC. If it is on, turn the toggle off.
- Wait for the old DS record’s TTL to expire.
- On Manage, under Nameservers, choose Custom DNS. Paste Cloudflare’s two, then select the green check mark.
- After Cloudflare shows Active, open DNS, then Settings, in Cloudflare and select Enable DNSSEC.
- In Namecheap’s Advanced DNS, turn DNSSEC on and replace the old DS values with Cloudflare’s new ones. Save with the check mark, and do not restore old values.
It worked when: Cloudflare shows your domain as Active, and Namecheap lists Cloudflare’s two nameservers.
You can’t find the DNSSEC controls.
Read Namecheap’s help pages on DNSSEC, or ask its support, before you change nameservers.
Your old records disappeared after you changed nameservers.
Records don’t move with a nameserver change. Add them again wherever your nameservers now point, like Cloudflare.
Check your records
Your AI tool looks up your domain’s records from your computer and compares them with what your host expects. You fix anything it finds in Namecheap.
It worked when: Your AI tool reports that your records match, and your site opens at your own domain.
Check this step
- Open your domain on your phone. Is there a lock icon in the address bar?
- Try it with and without www. Do both work?
The site loads but there’s no lock icon yet.
Your host makes the HTTPS certificate after your records point to it. Give it an hour, then check again.
It still doesn’t work after two days.
Read “Why isn’t my domain working yet?” in Answers. Then ask your AI tool to compare screenshots of your host and Namecheap.
Cloudflare RegistrarPick Cloudflare if you host on Cloudflare Workers, or want registry pricing with no markup and don’t mind Cloudflare running your DNS.
A domain you own
Choose a name
You get five short names to choose from, with the endings, like .com, explained. Nothing is bought in this step.
It worked when: You have one name you like that isn’t taken, written in PLAN.md.
Check this step
- Can you say the name out loud and have a friend spell it right?
- Does Cloudflare sell the ending you picked?
Every name you like is taken.
Try adding a short word, like get or app, or try another ending. Ask your AI tool for five more.
Cloudflare doesn’t sell the ending you want.
Pick another ending, or buy this one from another seller listed in Domains, under Concepts.
Buy it on Cloudflare
You search for the name and pay in the Cloudflare dashboard. Cloudflare hides your contact details where the domain ending allows it, but your state or province and country stay public.
- Sign in at dash.cloudflare.com. If Cloudflare asks you to verify your email address, do that first.
- Go to the Register domains page.
- Type your name and select Search. Check the spelling, because Cloudflare doesn’t refund registrations.
- Beside the exact name, select Purchase.
- Under Payment option, choose how many years to buy.
- Fill in your contact details with an email address you check. Under Payment, select Complete purchase.
- Check your email for a message from Cloudflare and confirm your contact address.
It worked when: Your new domain is listed in your Cloudflare account, with auto-renew turned on.
Your domain shows a parked page, or says it’s on hold.
Cloudflare holds the domain until you confirm your contact email. Find its email, click the link, and the domain comes back.
You spelled the name wrong.
Buy the right spelling, and turn off auto-renew on the wrong one so it expires.
Your site at your own domain
Connect it to your host
For Cloudflare Workers, the Worker adds the records itself. For Vercel or Netlify, you add the records your host shows.
- Hosting on Cloudflare Workers? Skip these actions and do the Cloudflare Workers step “Connect your own domain”. It adds the records for you.
- For Vercel or Netlify, add your domain in your host first. Keep the page with the records it shows open.
- In Cloudflare, open your domain and go to DNS Records. Select Add record.
- Choose the Type your host shows, like A or CNAME. Type @ in Name for yourname.com, or www for www.yourname.com.
- Paste the value exactly. Set Proxy status to DNS only, then select Save.
It worked when: Your host’s records are listed under DNS Records, or your Worker shows your Custom Domain.
Check this step
- Does each record in Cloudflare match your host’s page letter by letter?
You see “too many redirects”, or the lock icon never appears.
The record is probably Proxied. Select Edit on it, set Proxy status to DNS only, then select Save.
Your host asks you to change nameservers.
That option doesn’t work for a Cloudflare Registrar domain. Choose your host’s option to add records instead.
Check your records
Your domain’s live records are compared with what your host expects. You fix anything that differs in Cloudflare.
It worked when: Your AI tool reports that your records match, and your site opens at your own domain.
Check this step
- Open your domain on your phone. Is there a lock icon in the address bar?
- Try it with and without www. Do both work?
The site loads but there’s no lock icon yet.
Your host makes the HTTPS certificate after your records point to it. Give it an hour, then check again.
It still doesn’t work after two days.
Read “Why isn’t my domain working yet?” in Answers. Then ask your AI tool to compare screenshots of your host and Cloudflare.
Choose an email service
An email service sends email from your own domain. If you picked Supabase for sign-in, choose one now and verify your domain, so Supabase can email anyone. Otherwise skip this until your product sends its own messages.
Compare them: Resend, Amazon SES or SendGrid: which email service fits my product?
ResendPick Resend if you want a free plan with no end date, a test address you can send from today, and setup guides for tools like Next.js.
Resend, ready to send
Create a Resend account
Your product sends email through your Resend account, so you make that first.
- Go to resend.com/signup and create an account. You can sign up with your Google or GitHub account.
- Stay on the Free plan for now.
- Note the email address you signed up with. Your first test email goes there.
It worked when: You can sign in and see the Resend dashboard.
Verify your sending domain
Inboxes trust email more when the sender proves the domain is theirs. You prove it by copying a few DNS records from Resend into your domain’s settings.
- Open Resend’s Domains page and click Add Domain.
- Enter a subdomain of your domain, like updates.yourname.com. Resend recommends a subdomain for app emails.
- Choose the region closest to most of the people you’ll email.
- Open the Records tab. In another browser tab, sign in where you manage your domain and open its DNS settings.
- Add every record from the Records tab. Copy and paste each name and value exactly, with nothing extra.
- If your domain uses Cloudflare, set the cloud icon on these records to gray, which means DNS only.
- Wait for Resend to verify the records. It often takes about 15 minutes, and can take up to 72 hours. You can carry on with “Create a key and save it in .env” while you wait.
- After the domain is verified, ask your AI tool to help add a DMARC record. It helps receiving mail services check who sent the message.
It worked when: Your domain shows as verified on the Resend Domains page.
You don’t own a domain yet.
Buy one first. Until then, you can still send test emails to your own address.
It still won’t verify after a few hours.
Compare each record with the Records tab, letter by letter. Make sure you added them where your domain’s DNS is really managed. If it’s still waiting after 72 hours, click Restart verification.
Your DNS settings add your domain to the end of a value.
Type a period at the very end of that value. It tells your DNS settings to leave the value alone.
Create a key and save it in .env
An API key is a secret code that lets your product send email through your account. It goes in a file called .env, which stays on your computer.
- Open Resend’s API keys page and start creating a key. Give it your product’s name.
- Give the key permission to send email, and limit it to your sending domain if that option is available.
- Copy the key into your password manager when it is shown.
- In your product’s folder, open the file named .env. If there isn’t one, ask your AI tool to create an empty one, then open it yourself.
- Add one line: RESEND_API_KEY= followed by your key, with no spaces. Save the file.
- Don’t save a version in Git yet. “Send one email your product needs” first checks that Git ignores .env.
It worked when: Your .env file has one line that starts RESEND_API_KEY= and holds your key.
You lost the key or pasted it somewhere public.
Remove it on the API keys page and create a new one. Then update the line in .env.
Your first email
Send one email your product needs
Your AI tool adds one email from your plan, like a welcome note or a receipt. Your product’s server sends it, so the key stays secret.
It worked when: Your product sends the email when you do the action, and it shows on Resend’s Emails page.
Check this step
- Did the email arrive at your own address?
It says the API key is invalid.
Check that the line in .env starts with RESEND_API_KEY= and has no spaces. Then restart your product so it reads the file again.
Emails to anyone except you fail.
That’s expected until your domain is verified. Then ask your AI tool to send from an address at your domain.
Sign-up breaks when the email fails.
For an optional welcome email, ask your AI tool to show a retryable error without blocking sign-up. Email confirmation still needs to work before the account is confirmed.
Check it lands in the inbox
An email can be delivered and still land in spam. Send it from your verified domain to real inboxes, and look where it ends up.
- Once your domain is verified, ask your AI tool to change the sender to an address at it, like hello@updates.yourname.com.
- Make the email send the real way, like signing up with a new account. Use a Gmail address and one other inbox, like Outlook.
- On Resend’s Emails page, open your test email and check whether the receiving mail server accepted it.
- Open each inbox. If the email isn’t there, look in the spam or junk folder.
- If the email lands in spam, open its details in Resend and choose Insights. Review the checks it shows, ask your AI tool to fix them, then try again.
It worked when: Your email arrives in the main inbox, sent from your own domain.
Check this step
- Do the sender name and address look right?
It still lands in spam.
New domains need time to earn trust. Keep the email simple, and send a few at a time at first.
It works on your computer but not online.
Your host needs the key too. Add RESEND_API_KEY in its settings, then put your product online again.
Amazon SESPick Amazon SES if you already use AWS, or you’ll send a lot and want to pay the lowest price per email of the three.
Your account is ready to send
Open SES and pick a Region
Amazon runs SES in many places around the world, called Regions. You pick one, and your sending domain and credentials live there.
- Sign in to the AWS console, or create an AWS account.
- Open the SES console at console.aws.amazon.com/ses.
- In the top right, open the Region menu and pick the Region closest to most of the people you’ll email.
- Write down the Region’s name.
It worked when: The Amazon SES console is open in the Region you picked.
Keep: The Region’s name, because the other steps only work in that Region.
You see a Get started wizard instead of the console.
That’s Amazon’s setup for first-time users. Follow it, and choose Domain when it asks what to verify. Then carry on with “Verify your sending domain”.
Verify your sending domain
Your sending domain is the address your app’s emails come from. Use a subdomain of your domain, like updates.yourname.com. SES gives you DNS records that prove it’s yours, so inboxes trust your email more.
- In the left menu, under Configuration, choose Identities. Then choose Create identity.
- Under Identity details, select Domain. Enter your sending domain, like updates.yourname.com. Leave out www.
- Leave the DKIM settings as they are. Choose Create identity.
- On the identity’s page, open the Authentication tab and expand Publish DNS records.
- In another browser tab, open your domain’s DNS settings. Add each CNAME record exactly as SES shows it, including any underscore.
- If your DNS settings have a proxy switch for these records, turn it off.
- Verify your own email address too, so you can test before Amazon lets you email anyone. Choose Create identity again, select Email address, and enter your email. Click the link Amazon sends you.
- Wait for your sending domain to verify. It can take up to 72 hours. While you wait, you can do “Create SMTP credentials and save them in .env”.
- Once it’s verified, ask your AI tool to help you add a DMARC record.
It worked when: Your sending domain’s Identity status says Verified, and its DKIM configuration says Successful.
Check this step
- Does your own email address show as Verified too?
It still isn’t verified after 72 hours.
Compare each record with the console, letter by letter. Make sure you added them where your domain’s DNS is really managed.
Your sending domain or your credentials have vanished from the console.
Check the Region in the top right of the console. Each Region keeps its own domains and SMTP credentials, so switch back to the one you chose.
Create SMTP credentials and save them in .env
SMTP credentials are a user name and password that let your app send email through SES. They go in your .env file, which stays on your computer.
- In the SES console’s left menu, choose SMTP settings. Then choose Create SMTP Credentials. Amazon’s IAM console opens.
- Keep the suggested User Name, or type your own. Choose Create user.
- Select Show under SMTP password. Choose Download .csv file, because you can’t see the password again.
- Choose Return to SES console.
- In your product’s folder, open the file named .env. If there isn’t one, ask your AI tool to create an empty one, then open it yourself.
- Add SES_SMTP_USER= followed by the user name, and SES_SMTP_PASSWORD= followed by the password, each on its own line. Save the file.
- Delete the .csv file once both lines are saved.
It worked when: Your .env file holds your SMTP user name and password, and it is saved only on your computer.
Check this step
- Do both lines have no spaces around the equals sign?
- Did you create the credentials in the Region you wrote down?
You lost the password, or pasted it somewhere public.
In the IAM console, open Users and delete that SMTP user. Then create new credentials and update your .env file.
You see an error about permissions when you create them.
Your AWS account may lack permission to create SMTP credentials. Ask whoever manages its access permissions to grant the required IAM permissions.
Your sending domain or your credentials have vanished from the console.
Check the Region in the top right of the console. Each Region keeps its own domains and SMTP credentials, so switch back to the one you chose.
Your app sends real email
Send one email your app needs
Add one email from your plan, like a welcome note or a receipt. Your app’s server sends it through SES, so the password stays secret.
It worked when: Your app sends the email when you do the action, and it arrives at your own verified address.
Check this step
- Is the sender an address at your sending domain?
It says the credentials are wrong.
Check both lines in your .env file, then restart your app so it reads the file again. Make sure the endpoint is for the Region you chose.
Emails to anyone except you fail.
That’s test mode, which only emails verified addresses. “Ask Amazon to let you email anyone” lifts it.
Ask Amazon to let you email anyone
New accounts start in test mode, which Amazon calls the sandbox. It sends up to 200 emails a day, only to verified addresses. You ask Amazon to lift that.
- In the SES console’s left menu, choose Account dashboard.
- Find the notice that sending is restricted to the sandbox. Open its setup link and request production access.
- Select Transactional if your emails are things like receipts and sign-in codes.
- In Website URL, enter your site’s address. In Additional contacts, add an email where Amazon can reach you.
- Choose your Preferred contact language. Tick the Acknowledgement box only if you’ll email people who asked for it, and handle bounces and complaints.
- Choose Submit request. AWS gives an initial response within 96 hours. Approval may take longer if it needs more information.
It worked when: The Account dashboard no longer says your account is in the sandbox.
Amazon asks for more details.
Reply with what your app does, which emails it sends, and how people sign up to get them. Ask your AI tool to help you write it.
Your request is turned down.
Make sure your website is online and shows what the app does. Then answer Amazon’s questions and ask again.
Check it lands in the inbox
An email can be delivered and still land in spam. Once Amazon lets you email anyone, send yours to real inboxes and look where it ends up.
- Make the email send the real way, like signing up with a new account. Use a Gmail address and one other inbox, like Outlook.
- Open each inbox. If the email isn’t there, look in the spam or junk folder.
- In Gmail, open your test email’s message details and view the original message. Check its authentication results for DMARC.
- List the emails your app sends in PLAN.md.
- If your app is online, add the SES settings from your .env file to your host’s settings. Then put it online again.
It worked when: Your email arrives in the main inbox, sent from your sending domain.
Check this step
- Do the sender name and address look right?
It lands in spam.
New domains need time to earn trust. Add a DMARC record, keep the email simple, and send a few at a time at first.
It works on your computer but not online.
Your host needs the SES settings too. Add them in its settings, then put your app online again.
SendGridPick SendGrid if your team already uses Twilio, or you want your product’s emails and marketing emails in one service.
SendGrid, ready to send
Create a SendGrid account
Your product sends email through your SendGrid account, so you make that first.
- Go to twilio.com/en-us/products/email-api/pricing and start the free trial.
- Turn on two-factor sign-in when SendGrid asks. Keep any recovery codes in your password manager.
- Note today’s date. The free trial lasts 60 days, and then sending stops unless you pick a plan.
It worked when: You can sign in to the SendGrid console, and two-factor sign-in is on.
Your new account says it’s under review or inactive.
Look for an email from SendGrid’s support team. It may ask for more details before your trial starts.
Authenticate your sending domain
Inboxes trust email more when the sender proves the domain is theirs. You prove it by copying a few DNS records from SendGrid into your domain’s settings.
- In the SendGrid console, select Settings, then Sender Authentication. In the Domain Authentication section, click Get Started.
- Choose where your domain’s DNS is managed. Pick I’m not sure if you don’t know.
- When it asks about branded links, choose No for now. Click Next.
- In Domain You Send From, type your domain, like yourname.com, with no www.
- Click Advanced Settings and leave Use automated security checked. Click Next.
- On the Install DNS Records page, add each record to your domain’s DNS settings. Copy and paste each name and value exactly, with nothing extra.
- If your domain uses Cloudflare, set the cloud icon on these records to gray, which means DNS only.
- Back in SendGrid, ask it to verify the records. DNS updates can take up to 48 hours. You can carry on with “Create a key and save it in .env” while you wait.
It worked when: The Sender Authentication page shows your domain as verified.
You see an Automatic Setup tab with a Connect button.
Your domain is with GoDaddy. Click Connect and sign in to GoDaddy, and SendGrid adds the records for you.
It still won’t verify after 48 hours.
Compare each record with SendGrid’s page, letter by letter. If it still fails, contact SendGrid’s support.
Your DNS settings won’t accept an underscore in a CNAME record.
Start again and uncheck Use automated security. SendGrid then gives you TXT and MX records instead.
Create a key and save it in .env
An API key is a secret code that lets your product send email through your account. It goes in a file called .env, which stays on your computer.
- In the SendGrid console, go to Settings, then API Keys. Click Create API Key.
- Type a name for the key in API Key Name, like your product’s name.
- Choose Custom Access for the API key. Give Mail Send permission to send mail and leave unrelated permissions off.
- Click Create & View. Click the key to copy it. SendGrid won’t show it again.
- In your product’s folder, open the file named .env. If there isn’t one, ask your AI tool to create an empty one, then open it yourself.
- Add one line: SENDGRID_API_KEY= followed by your key, with no spaces. Save the file.
- Don’t save a version in Git yet. “Send one email your product needs” first checks that Git ignores .env.
It worked when: Your .env file has one line that starts SENDGRID_API_KEY= and holds your key.
You lost the key or pasted it somewhere public.
Delete it on the API Keys page and create a new one. Then update the line in .env.
Your first email
Send one email your product needs
Your AI tool adds one email from your plan, like a welcome note or a receipt. Your product’s server sends it, so the key stays secret.
It worked when: Your product sends the email when you do the action, and it arrives at your own address.
Check this step
- Did your product log a 202 answer from SendGrid?
It says the key is wrong or not allowed.
Check that the line in .env starts with SENDGRID_API_KEY= and has no spaces. Then restart your product so it reads the file again. Make sure the key has Mail Send access.
Your domain isn’t verified yet and you want to test.
Follow SendGrid’s Single Sender Verification setup. Switch to your authenticated domain before you send to other people.
Sign-up breaks when the email fails.
For an optional welcome email, ask your AI tool to show a retryable error without blocking sign-up. Email confirmation still needs to work before the account is confirmed.
Check it lands in the inbox
An email can be delivered and still land in spam. Send it from your verified domain to real inboxes, and look where it ends up.
- Make the email send the real way, like signing up with a new account. Use a Gmail address and one other inbox, like Outlook.
- In SendGrid’s email activity history, find the test message and check whether the receiving mail server accepted it.
- Open each inbox. If the email isn’t there, look in the spam or junk folder.
It worked when: Your email arrives in the main inbox, sent from your own domain.
Check this step
- Do the sender name and address look right?
It lands in spam.
New domains need time to earn trust. Keep the email simple, and send a few at a time at first.
Emails stopped sending after a while.
Your free trial may have ended. Pick a plan in Settings, then Account Details, then Your Products.
It works on your computer but not online.
Your host needs the key too. Add SENDGRID_API_KEY in its settings, then put your product online again.
Get sign-in ready for real people
Skip this if your app has no accounts. Otherwise finish the sign-in steps you left for later, so anyone can sign up at your live address.
- Open “Choose how people sign in” again and open the service you picked.
- If you picked Supabase, do “Send real emails with your own email service”. Until then, Supabase only emails people on your Supabase team.
- If you picked Clerk, do “Make your own Google keys for launch”. Until then, Google sign-in only works for testing.
- In your sign-in service, add your live address to the web addresses it allows.
- Open your live app on your phone and sign up as a new person, with an email you haven’t used yet.
It worked when: A new person can sign up and sign in on your live app.
Optional steps after publishing
Turn on live payments
If you are charging now and your test purchase worked, switch checkout to live. A free app is ready to share without checkout. To charge later, return to “Choose how people pay” first.
- Open “Choose how people pay” again and open the service you picked.
- Work through its “Switch to real payments” step, one line at a time. Your AI tool can explain any line.
- Put each live key in your host’s settings, never in your code.
- Ask your AI tool to push a new saved version to GitHub or GitLab. Your host then puts your app online again with the live keys.
- Test the live checkout the way “Switch to real payments” says. Stripe doesn’t allow buying with your own card.
It worked when: Your live app’s checkout uses your live payment account, not the test one.
Check this step
- Is your payment service’s dashboard in live mode, not test or sandbox?
Join the Leaderboard
Your product can be shared now. If you want a public builder profile, the Leaderboard ranks people by GitHub activity. Connect your GitHub account once, and the versions you save to GitHub count toward your place. BuildLadder never sees your code.
- Open buildladder.com/profile in your browser.
- If it asks you to sign in, select Continue with GitHub. That signs you in and connects GitHub in one go.
- If you’re already signed in with email or Google, select Connect GitHub.
- On GitHub, check what BuildLadder asks to see, then select Authorize.
- If BuildLadder asks about the Newsletter, choose what you want, then select Save and continue.
- Your repository is private, so let GitHub count it. On GitHub, select your profile picture, then Your profile.
- Above the contribution calendar, select Contribution settings. Turn on Private contributions if it’s off. Others then see how many contributions you made each day, never the details.
- Open the Leaderboard on BuildLadder and find your name. New activity can take a while to appear.
It worked when: You can find your name on the Leaderboard.
Check this step
- Does your profile show your GitHub name and picture?
Your saved versions don’t show on GitHub’s contribution calendar.
GitHub counts a version only when Git uses an email on your GitHub account. Ask your AI tool: “Which email does Git use here, and is it on my GitHub account?”
It says that GitHub account already belongs to another BuildLadder account.
You signed in with GitHub before. Sign out, then select Continue with GitHub to use that account.
Stuck? Try these, in order
- Stop asking it to “fix it”. Say exactly what’s wrong.
Paste this into the same chat. It asks your AI tool to find the problem with you.
Troubleshooting promptI’m following “Build a web app” on BuildLadder and something isn’t working. This comes from https://buildladder.com/guides/web-app. If you can open web pages, read https://buildladder.com/guides/web-app.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address. Ask me which step I’m on, what I tried and what happened, one question at a time. Look at the files in this folder if you can. Then explain the problem in plain words and suggest the smallest fix. Don’t change anything that already works.
- Check the service isn’t down.
If you use one of these, open its status page before changing any code: Supabase, Vercel, Netlify, Cloudflare, Stripe, Clerk, Firebase, Resend, GitHub, Expo, Claude, OpenAI.
- Go back to your last saved version.Troubleshooting prompt
Take my product back to the last saved version that worked. First show me which version that is and what will change. Don’t delete anything else.
- Make the change smaller.Troubleshooting prompt
Let’s make a smaller change. Undo what you just tried. Then do only the first part of it, and tell me how to check that part works before we go on.
- Ask a person.
Copy this, fill in each line, and post it in a community like r/vibecoding. Take out any keys or passwords first.
Problem reportWhat I'm building: (one sentence) What I asked my AI tool to do: (the last request) What I expected: (what should happen) What happened instead: (what you see) The exact error, if any: (copy it here) What I've tried: (each attempt, in order) My tools: (AI tool, website or app, hosting)
All done? Check it’s ready to share
Your product has a live link
Open the link on another device and try the main task. You can send that link to your first users.
Look things up
Questions people ask
- Why keep a PLAN.md file?
- What do I do, and what does my AI tool do?
- What should I never paste into the AI chat?
- My AI tool says it’s done. How do I check it worked?
- Why do I have to make the accounts myself?
- All answers
Words used on this page
- Localhost
- Localhost is the name your computer uses for itself. When your site runs at an address like http://localhost:3000, it's a private preview that only you can see.
- Framework
- A framework is a ready-made starting structure for building an app, with common parts already solved. You follow its patterns and spend your time on what makes your product different.
- Preview
- A preview is a copy of your site or app that you check before real visitors see it. It might run on localhost or at a temporary link from your host.
- Git
- Git is a free tool on your computer that keeps a history of your product's files. It lets you save versions, compare them, and go back if something breaks.
- Commit
- A commit is a saved version of your product at one moment, with a short note about what changed. Git keeps every commit, so you can look back or undo a change later.
- Database
- A database is an organized place where an app stores information so it's still there later. It keeps things like accounts, posts, and orders, and finds them quickly.
- Authentication
- Authentication is how an app checks who you are, usually when you sign in. Common ways are a password, a code sent to your email, or a "Sign in with Google" button.
- Session
- A session is how an app remembers that you signed in, so you don’t sign in again on every page. Your browser or phone keeps a small signed note that proves it’s you.
- Test mode
- Test mode is a practice space in a payment service. Stripe calls it a sandbox. You pay with fake card numbers, so you can check everything works without moving real money.
- Accessibility
- Accessibility means building your website or app so everyone can use it, including people with disabilities. It should work with a keyboard alone and with tools that read the screen aloud.
- Environment variable
- An environment variable is a named setting stored outside your code, such as an API key or a database address. Your app reads it when it runs, so secrets stay out of your shared files.
- API key
- An API key is a long code that tells a service your app is allowed to use it. Many keys are secret, so treat them like passwords and keep them out of shared code.
- Code review
- A code review is a second look at a change before it's merged. A person or an AI tool reads the changed lines and points out bugs, risks or simpler ways to do it.
- Push
- Pushing sends the commits you saved on your computer up to your online copy, like GitHub or GitLab. Until you push, your new versions exist only on your computer.
- GitHub
- GitHub is a website that stores your Git repositories online. It keeps a backup of your product's history and lets you share code and work with other people.
Official pages
Updated