All chapters

Chapter 7 · Part 2: Build it and ship it

Put it online early

Goal
Save your app to GitHub, then connect it to Vercel so it has a real web address anyone can open.
Time
About 40 minutes. Go at your own pace.
Before you start
Chapter 6 done, and the GitHub and Vercel accounts from Chapter 5.

Right now your app lives on one computer. In this chapter, you'll save it to GitHub and connect that to Vercel, and by the end it has a real web address. It only shows a title, and that's the point. You'll get the whole path from your computer to the web working while there's almost nothing that can go wrong.

From here on, every change you make follows the same route: you change the app, save it to GitHub, and Vercel publishes it.

The three pieces

  • Git keeps the history of your project. Each saved snapshot is called a commit.
  • GitHub is where a copy of that history lives online.
  • Vercel watches your GitHub repository and publishes the app whenever it changes.

1. Save a snapshot on your computer

  1. Look at the phase plan

    Save this next to the one from Chapter 6, as plan/07-put-it-online.md. Same way as before: new file, paste, Ctrl+S.

    plan/07-put-it-online.md
    # Phase 7: put it online early
    
    Read `plan/00-app-plan.md` first. This phase saves the app from phase 6 to GitHub so Vercel can publish it. There's nothing new to build.
    
    ## Goal
    
    The app is saved in a GitHub repository and live on a Vercel web address.
    
    ## What to do
    
    - Check that this folder is a Git repository on the branch `main`, with everything committed.
    - Connect it to the GitHub repository the owner created, and push `main`.
    - The owner connects Vercel in the browser. That's not a job for Claude.
    
    ## Rules for this phase
    
    - Never commit secrets. No `.env` files, passwords, tokens, or keys. Check `.gitignore` first.
    - Never ask me for a password or a token. If Git needs me to sign in, I'll do it in the browser.
    - Tell me what each command does before you run it.
    - Push only `main`. Don't force-push, and don't rewrite history.
    
    ## Done when
    
    - `git status` says the working tree is clean.
    - The GitHub repository shows the same files as this folder.
    - The Vercel address shows the home page from phase 6.
    
    ## Out of scope
    
    The database, sign-in, photos, a custom domain, and anything that needs a secret. Those are later phases.
    
  2. Ask Claude Code to commit

    Start Claude Code in the VS Code terminal (claude) and paste this. It checks that your folder is a Git repository, shows you what it's about to save, and makes the commit. It also checks nothing looks like a secret. You're not likely to have any yet, but it's a habit worth starting now.

    Prompt for Claude Code
    Read plan/07-put-it-online.md in this folder.
    
    First, check whether this folder is a Git repository on the branch main. If it isn't, set it up. Then show me the list of files you're about to commit and tell me if any of them look like secrets. If everything is fine, make one commit with a short message that says what it is.
    
    Don't push anything yet. Tell me what each command does before you run it.

    Read the list of files before you approve the commit. You should see your app and plan folders and a few settings files. You should not see node_modules, which Git leaves out on purpose.

2. Make an empty repository on GitHub

A repository is a project folder that GitHub keeps for you. You'll make an empty one now, and fill it in the next step.

  1. Open the new repository form

    Sign in to GitHub. At the top right, open the + menu and choose New repository.

    GitHub's plus menu, open, with New issue, New repository, Import repository, New codespace, New gist, New organization, and New project.
    GitHub's plus menu, captured November 15, 2026.
    GitHub's plus menu, open, with New issue, New repository, Import repository, New codespace, New gist, New organization, and New project.
  2. Fill it in

    Name it kids-table, or a name for your own project. Choose Public or Private. Either works with Vercel's free plan. Public means anyone can read your code, and private keeps it to you. Nothing secret goes in the repository either way.

    Leave Add README, Add .gitignore, and Add license all off. Your project already has its own files, and starting empty keeps the first push simple. Then choose Create repository.

    GitHub's Create a new repository form with the name kids-table, visibility Public, and Add README, Add .gitignore, and Add license all left off.
    The new repository form, captured November 15, 2026.
    GitHub's Create a new repository form with the name kids-table, visibility Public, and Add README, Add .gitignore, and Add license all left off.
  3. Copy the address

    GitHub shows a page with a Quick setup box. Copy the address that ends in .git, the one that begins with https://github.com/. You'll give it to Claude Code next.

    A new, empty GitHub repository named kids-table, showing the Quick setup box with the repository's web address and the command-line steps.
    A brand-new, empty repository, captured November 15, 2026.
    A new, empty GitHub repository named kids-table, showing the Quick setup box with the repository's web address and the command-line steps.

3. Send your snapshot to GitHub

  1. Ask Claude Code to push

    Go back to Claude Code. In the prompt, replace the part in square brackets with the address you copied, then paste it.

    Prompt for Claude Code
    Connect this folder to my GitHub repository at [paste the address from GitHub] and push the main branch.
    
    Tell me what each command does before you run it. If Git needs me to sign in, tell me, and I'll do it in the browser window. Never ask me for a password or a token.
  2. Sign in if a window opens

    The first time you send something to GitHub, a browser window may open and ask you to sign in. That's Git Credential Manager, which you kept on in Chapter 4. Sign in there, in the browser, and approve it.

    Never type a password into Claude Code

    If Claude Code ever asks you to paste a GitHub password or a token, stop. Git doesn't need either one in the chat. Sign in through the browser window, and tell Claude Code it's done.

  3. Look at GitHub

    Refresh your repository page on GitHub.

    What you should see

    The Quick setup box is gone, and your files are listed, with your commit message next to each one.

    The kids-table repository on GitHub, listing the app, plan, and public folders and the project's settings files, with the commit message beside each.
    The repository after the first push, captured November 15, 2026.
    The kids-table repository on GitHub, listing the app, plan, and public folders and the project's settings files, with the commit message beside each.

If it doesn't work

If the push says the repository isn't found, check the address, and check that you're signed in to the same GitHub account that owns the repository.

If it says the branch isn't called main, tell Claude Code what it said and ask it to fix the branch name. Don't let it force anything.

4. Put it online with Vercel

You do this part in your browser, not in Claude Code. Vercel's screens change from time to time, so look for the button with the same meaning if a label here is a little different.

  1. Start a new project

    Sign in to Vercel (opens in a new tab). On a new account, the dashboard says Deploy your first project. Choose Import next to Import Project. You can also choose Create New at the top right, then Project.

    Vercel's dashboard for a new Hobby account, with Deploy your first project and an Import button next to Import Project.
    A new Vercel account's dashboard, captured November 15, 2026.
    Vercel's dashboard for a new Hobby account, with Deploy your first project and an Import button next to Import Project.
  2. Connect GitHub

    The New Project page offers Import Git Repository, with GitHub, GitLab, Bitbucket, and one more. Choose GitHub.

    Vercel's New Project page, with Import Git Repository and buttons for GitHub, GitLab, Bitbucket, and Origin.
    Vercel's New Project page, captured November 15, 2026.
    Vercel's New Project page, with Import Git Repository and buttons for GitHub, GitLab, Bitbucket, and Origin.

    Vercel then sends you to GitHub to ask for permission. GitHub shows a screen that lets you decide which of your repositories Vercel can see. It offers All repositories or Only select repositories. Choose Only select repositories, pick kids-table from the list, and approve. You can change this later in your GitHub settings. GitHub's own screens change, so we haven't put a picture of this one here.

    Vercel can only be as careful as the access you give it

    Whatever repositories you let Vercel see, it can list and import. If you only want one project online, give it only that one. If you already use Vercel with other projects, GitHub may already have given it wider access. In that case, your list will show your other repositories too. Be careful about changing that setting, because those projects may depend on it.

  3. Choose your repository

    Vercel lists your repositories. Choose Import next to kids-table.

    Vercel's Import Git Repository list, with your GitHub account in a drop-down and kids-table listed with an Import button.
    The repository list, captured November 15, 2026. Yours will show your own repositories.
    Vercel's Import Git Repository list, with your GitHub account in a drop-down and kids-table listed with an Import button.
  4. Check the settings, then deploy

    Vercel notices that it's a Next.js app and fills in the settings itself. You'll see the project name, the Hobby team, ./ as the root directory, and Next.js as the application preset. Leave them alone. Environment Variables is where secrets go. You'll use it in Chapter 16, and there are none yet, so leave that closed. Choose Deploy.

    Vercel's New Project screen importing brianvannest/kids-table from the main branch, with the project name kids-table, the Next.js preset, and a Deploy button.
    Vercel's project settings, captured November 15, 2026.
    Vercel's New Project screen importing brianvannest/kids-table from the main branch, with the project name kids-table, the Next.js preset, and a Deploy button.
  5. Verify your identity if it asks

    On a brand-new Vercel account, a Verify Your Identity window may appear. Vercel emails a 6-digit code to the address on your account. Choose Send Code, open that email, and type the code in. This is a one-time check. Don't share the code with anyone, and don't paste it into Claude Code.

    Vercel's Verify Your Identity window, saying it will email a 6-digit code, with Send Code and Cancel Verification buttons.
    Vercel's identity check, captured November 15, 2026. We covered the email address.
    Vercel's Verify Your Identity window, saying it will email a 6-digit code, with Send Code and Cancel Verification buttons.
  6. Wait, then open it

    Vercel builds your app. Ours took about half a minute. When it finishes, the page changes to Deployed to Production, with a small preview of your app and two buttons: Visit and Continue to Project. Choose Visit. The address ends in .vercel.app.

    Vercel building the project: the Deploy button reads Deploying, and a Deployment section lists Build Logs in progress, then Deployment Summary, Deployment Checks, and Assigning Custom Domains.
    Vercel building the app, captured November 15, 2026.
    Vercel building the project: the Deploy button reads Deploying, and a Deployment section lists Build Logs in progress, then Deployment Summary, Deployment Checks, and Assigning Custom Domains.

    The Build Logs row shows what Vercel is doing. A small yellow number beside it counts warnings. A warning doesn't stop the build. An error does, and the row turns red. Open the row to read the log. In ours, the two warnings were notes from npm: one about a setting on Vercel's own build machine, and one saying an ESLint version was out of date. Neither affects your app.

    What you should see

    The same page you saw on localhost in Chapter 6: “The Kids' Table” and “A small fry guide”. This time it's on a real address, and anyone you send the link to can open it.

    Vercel's Deployed to Production page, with a preview of the Kids' Table home page and Visit and Continue to Project buttons.
    Vercel's page after the first deployment, captured November 15, 2026. It said 29 seconds.
    Vercel's Deployed to Production page, with a preview of the Kids' Table home page and Visit and Continue to Project buttons.
    The Kids' Table home page, live on the web: a white page with the title The Kids' Table and the line A small fry guide, centered.
    The deployed app, captured November 15, 2026. The small round Next.js button you saw on localhost isn't here, because it only shows while you're building.
    The Kids' Table home page, live on the web: a white page with the title The Kids' Table and the line A small fry guide, centered.

Keep the repository in your own account

As Chapter 5 said, on Vercel's free Hobby plan, keep the repository in your personal GitHub account, not in an organization. If you made it under your own name, you're fine.

If it doesn't work

If your repository isn't in the list, Vercel doesn't have access to it yet. Use the link on that screen to change which repositories Vercel can see on GitHub, and add this one.

If the build fails, Vercel shows a log of what went wrong. Copy the last few lines, paste them into Claude Code, and ask it what they mean. You can also run npm run build on your computer, which is the same step. If it passes there, the cause is usually something in Vercel's settings.

What you set up

Vercel is now connected to your repository. Under your project's Settings, then Git, it says so, and describes what that means: it creates a deployment for any commit pushed to the repository.

Vercel's project Git settings, showing the connected repository brianvannest/kids-table and the line saying it creates deployments for any commits pushed to it.
The Git settings for a project, captured November 15, 2026.
Vercel's project Git settings, showing the connected repository brianvannest/kids-table and the line saying it creates deployments for any commits pushed to it.

So from now on, when you save a change to GitHub, Vercel notices and publishes a new version on its own. You don't click anything. In Chapter 17, you'll use that to ship changes and to undo them.

If you want to compare your work with ours, the reference app is on GitHub at brianvannest/kids-table (opens in a new tab), with one tagged version per chapter.

Checkpoint

0 of 4

Next step: the app is live and empty. Before you build anything real, Chapter 8 teaches you to think about what your app keeps. You'll take a messy group spreadsheet apart and decide what's shared and what stays private.

Last checked November 15, 2026. Software screens and free-plan limits change. If something here doesn't match what you see, the official link in the chapter is the source to trust.