# 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.

Web page: https://buildladder.com/guides/web-app

What you’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.

## 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.

- https://buildladder.com/setup
- https://buildladder.com/guides/plan-your-idea.md
- https://buildladder.com/concepts/working-with-an-ai-agent.md
- https://buildladder.com/concepts/saving-your-code.md
- https://buildladder.com/concepts/how-the-pieces-fit.md

## 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 (https://github.com/signup): The free plan includes private repositories
- Supabase, Firebase or Clerk (if your app needs accounts) account (https://buildladder.com/concepts/sign-in.md): Each has a free plan to start
- Stripe, Paddle or Polar (only if you charge at launch) account (https://buildladder.com/concepts/payments.md): None has a monthly fee to start, and each takes a share of every sale
- Vercel, Netlify or Cloudflare account (https://buildladder.com/concepts/hosting.md): 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.

## 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.
