Chapter 6 · Part 2: Build it and ship it
Your first app
By the end of this chapter, an app you didn't type a line of will be running on your own computer. First you'll write down what you're building, in a short file. Then you'll hand that file to Claude Code and let it build the starting point.
Why start with a file, not a chat
You could describe your app to Claude Code in a long message and hope it remembers. A file in your project works better. Claude reads it fresh every time, so every chapter starts from the same picture. When your idea changes, you change the file first, then tell Claude.
You'll use two kinds of files. One app plan says what the whole app is and how it works. One short phase plan per chapter says what to build in that chapter, and what to leave alone.
1. Make a folder and open it
Pick where it lives
Make a new folder for the project. If your Documents folder syncs to OneDrive, put the project somewhere else, such as
C:\Projects. Your app will hold tens of thousands of small files that don't need to sync.Make it and open it in VS Code
Open a terminal and run:
PowerShellNew-Item -ItemType Directory -Force C:\Projects\kids-table | Out-Null code C:\Projects\kids-table
VS Code opens on the empty folder. It may open in Restricted Mode, with a banner across the top, or ask whether you trust the authors of the files in this folder. It's your own folder, so trust it. In the banner, choose Manage, then Trust.

VS Code's Workspace Trust screen, captured November 15, 2026. Choose Trust. Close the Welcome tab if it's open. You should see your empty
kids-tablefolder in the Explorer on the left.
VS Code on the empty project folder, captured November 15, 2026. You may see a Chat panel
VS Code may show a Chat panel on the right side. You don't need it for this guide, which works in the terminal. Ignore it, or close it with the X.
Open the terminal inside VS Code
In VS Code, choose Terminal, then New Terminal. A terminal opens at the bottom, already inside your project folder. You'll use this one for the rest of the guide.

The terminal, open inside the project folder, captured November 15, 2026.
2. Put your plan in the project
Below are the two plan files for The Kids' Table. To use them, you'll make a plan folder and save each one inside it.
Make the plan folder
In the VS Code Explorer (the file list on the left), choose the New Folder icon and name it
plan.Save the app plan
Right-click the
planfolder and choose New File. Name it00-app-plan.md. Click Copy on the box below, paste into the empty file, and press Ctrl+S. You can also click Download and move the file into the folder yourself.plan/00-app-plan.md# The Kids' Table: app plan A small fry guide. This file describes what we're building and how it works. Every phase plan points back to it. When something here changes, change it here first, then tell Claude. ## What it is The Kids' Table is a shared list of family-friendly restaurants around greater Houston, kept by one group of friends. Members find places to eat with kids, see what their friends thought, and keep track of where they'd go again. It replaces the group's old spreadsheet and group text. It checks what people enter and shows things the spreadsheet couldn't. ## Who uses it - **Visitors.** Anyone with the link. No sign-in. They see a short public list. - **Members.** Friends the owner has approved. They sign in with an email and password. - **The owner.** One person. Decides who is in the group and which restaurants are public. ## What it keeps Three kinds of things: 1. **Restaurant.** Shared by the whole group. A name, an area of town, a food type, and features like a patio or a playground. Members search first, and add a restaurant only if it isn't there yet. Restaurants can have photos. 2. **Review.** One per person per restaurant. A rating from 1 to 5, plus an optional overall note. The author can edit their own review. The whole group sees who wrote it, the rating, and the note. 3. **Visit.** A date, plus optional personal notes. A person can log many visits to the same restaurant. **Only the person who logged a visit can see it.** ## Who sees what | | Visitors | Members | Owner | |---|---|---|---| | Public restaurant list (no photos) | Yes | Yes | Yes | | Every restaurant, with photos | No | Yes | Yes | | Everyone's reviews | No | Yes | Yes | | Their own visits | No | Their own only | Their own only | | Approve or remove members | No | No | Yes | | Choose which restaurants are public | No | No | Yes | | Edit or remove anything | No | Their own reviews and visits | Yes | The public page never shows reviews. ## Joining the group Anyone can create an account. A new account sees only a "waiting to be let in" screen until the owner approves it. Each member has a status (waiting, member, removed) and a role (owner or member). The owner has a Members screen listing everyone with their name and email. No emails are sent. The owner recognizes their friends. ## The pages - **Public page.** The owner's chosen restaurants. Filter by features, food type, and area. No photos, no reviews, no sign-in. - **Sign in and create account.** - **Waiting screen.** What a new account sees until approved. - **Restaurants (members).** Every restaurant, with photos. Search first. Add a restaurant if it isn't there. - **One restaurant (members).** Photos, the group's reviews, your own review, your own visits. - **Log a visit.** - **Members (owner only).** Approve, remove, and choose which restaurants are public. ## Rules the app has to enforce - One review per person per restaurant. - A rating is a whole number from 1 to 5. - A visit has a date, and the date can't be in the future. - A person can only see and change their own visits. - Every page and action for members checks, on the server, that the person's status is "member". - Passwords are never stored as plain text. - Database passwords and keys live only in server code and in Vercel's settings, never in the browser and never in GitHub. ## Tools VS Code, GitHub, Vercel, and MongoDB Atlas, with Claude Code writing most of the code. Next.js and TypeScript. Better Auth for email and password sign-in. Vercel Blob for photos. ## Out of scope for now Google or Microsoft sign-in, custom domains, sending email, separate development and production setups, and anything about real students or school data. ## Settings that make it yours One settings file names the app, the item (restaurant), the visit, the categories, and the features. To build your own version, change that file and the sample list, and keep the steps.
Save the phase plan
Do the same for this one, and name it
06-first-app.md.plan/06-first-app.md# Phase 6: your first app on your own computer Read `plan/00-app-plan.md` first. It says what the whole app is. This phase builds only the starting shell, so you can see something running. ## Goal A new Next.js app, in this folder, running on your own computer at a local address. It shows a simple placeholder home page for The Kids' Table. ## What to build - A Next.js app using the App Router and TypeScript, with Tailwind CSS and ESLint. - A home page that says "The Kids' Table" and "A small fry guide", and nothing else yet. - A clean first commit on `main`, ready to push to GitHub in the next phase. ## Rules for this phase - Work only in this folder. - Do not add a database, sign-in, or any secrets yet. - Explain each command before you run it, in plain English. - Keep the code simple enough that a beginner can read it. ## Done when - `npm run dev` starts without errors. - Opening the local address shows the home page. - `npm run lint` and `npm run build` both pass. - The files are committed, with a short message that says what they are. ## Out of scope The public page, sign-in, the database, photos, and deploying. Those are later phases.
If you're building your own idea
Everything in this guide works for any list-and-members app. You don't have to write the plan from nothing, and you shouldn't. Ask Claude to question you first. That's the same move as the gap-finding prompt in Chapter 3, and it's how you find the decisions you haven't made yet.
A prompt that produces a good plan does eight things:
- Says what it's for and who uses it. Two or three plain sentences.
- Names the things it keeps (here: restaurant, review, visit), and who owns each.
- Says who sees what. This is what sign-in exists to protect.
- Asks Claude to question you before it writes. “Ask me up to 10 questions, one at a time.”
- Names the sections you want. Every plan then reads the same way.
- Asks for assumptions. Anything Claude guessed, you can now correct.
- Stays in plain English, in one file, with no code. Code comes later.
- Says what's out of scope. It stops Claude from building things you didn't ask for.
Replace the parts in square brackets with your own idea. Start Claude Code, as in the next section, and paste it there. When it finishes, save its answer as plan/00-app-plan.md and read it with a red pen. Fix anything that's wrong before you build.
I want to build a web app called [name]. It's for [who], so they can [what]. The people who'll use it: - [visitors: no sign-in, see a short public list] - [members: sign in, see everything] - [the owner: approves members, controls what's public] What it keeps track of: [your things, one line each, and who owns each]. Don't write the plan yet. First ask me up to 10 questions, one at a time, about anything unclear: who sees what, which pieces of information belong together, and what mistakes the app should stop people making. Wait for my answer each time. When I've answered, write the plan as one Markdown file with these sections: what it is, who uses it, what it keeps, who sees what, the pages, rules the app must enforce, tools, and what's out of scope. Use plain English and no code. Then list every assumption you made, so I can correct them.
3. Hand it to Claude Code
Start Claude Code
In the VS Code terminal, run:
PowerShellclaude
The first time you open Claude Code in a new folder, it asks a safety question: is this a project you created or one you trust? It also tells you that it'll be able to read, edit, and run files there. This is your own folder, so choose Yes, I trust this folder and press Enter. Watch out: the choice it highlights first is No, exit, so press the down arrow before you press Enter.

Claude Code's safety check on first open in a folder, captured November 15, 2026. Only trust folders you made or know
Say yes for your own project. If you ever open Claude Code in a folder you downloaded from someone else, read what's in it first.
After that it opens and waits for you to type. It starts in your project folder, so it can see the plan files.

Claude Code, ready for a prompt, captured November 15, 2026. Its tips, version, and wording change often, so yours won't match exactly. Pick a mode: how much Claude Code asks first
The line under the input box shows Claude Code's permission mode. It decides how often Claude Code stops to ask before it acts. Press Shift+Tab to move to the next one. There are four, and the words on that line tell you which one you're in:
- Auto (
auto mode on): a second AI model checks each action for you and blocks the risky ones. You'll see far fewer questions. It suits long jobs, and it's how a new Claude Code starts. The docs warn that it “does not guarantee safety.” - Manual (
manual mode on): Claude Code asks before most actions that edit files, run commands, or use the network. It suits reviewing every step yourself. - Accept edits (
accept edits on): Claude Code creates and edits files in your project folder without asking, and still asks before most other commands. It suits work you'll review in your editor afterward. - Plan (
plan mode on): Claude Code reads your project and writes a plan, but doesn't change your files until you approve the plan. It suits looking before you change anything.
For this chapter, we suggest manual. Seeing every request is the quickest way to learn what Claude Code actually does. From auto, one press of Shift+Tab gets you there. If you'd rather learn in auto, that works too. The prompt in this guide asks Claude to explain each command in plain English first, so you can still read what it did. Either way, you're the one responsible for the result, so read its summary at the end.
- Auto (
Paste the prompt
Click Copy, paste it into Claude Code, and press Enter.
Prompt for Claude CodeI'm building a web app called The Kids' Table and I'm new to coding. Read plan/00-app-plan.md and plan/06-first-app.md in this folder. Then do phase 6. Before you run any command, tell me in plain English what it does. If anything in the plan is unclear, stop and ask me. When you finish, tell me exactly how to open the app in my browser, and how to stop it.
Read before you approve
In manual mode, Claude Code asks your permission before it runs a command or changes a file. Read each request. (In auto mode you'll see fewer questions, so read Claude's explanations as they scroll past instead.) It should match the plan: setting up a Next.js app, installing it, and writing a simple home page. If it matches, approve it. If something surprises you, say no and ask it why.
It installs a lot of packages, so expect a minute or two of scrolling text. That's normal.
What it's building with
The app uses Next.js, a framework for websites, with TypeScript, Tailwind CSS for styling, and ESLint, which checks the code for mistakes. We built this one on Next.js 16. Yours may be a newer version, and that's fine.
4. Run it
Claude Code should tell you how to start the app when it finishes. If it didn't, here's the command. Exit Claude Code first with /exit, or open a second terminal with the + button.
npm run dev
The terminal says the app is ready and prints an address that starts with http://localhost:3000. Localhost means “this computer”. Nobody else can see the app yet. Open that address in your browser.
What you should see
A white page with “The Kids' Table” and “A small fry guide” in the middle. A small round button in the bottom corner is Next.js's own developer tool. It only appears while you're building.

To stop the app, click in the terminal and press Ctrl+C. To start it again, run npm run dev.
If it doesn't work
If the terminal says port 3000 is already in use, Next.js picks the next free one and prints it. Use the address it prints.
If you see npm.ps1 cannot be loaded because running scripts is disabled on this system, PowerShell is blocking the small script that npm uses to start. It's the same fix as in Chapter 4. Here it is again, one step at a time:
- Click inside the terminal at the bottom of VS Code, next to the blinking cursor.
- Click Copy on the box below, paste it into the terminal with Ctrl+V, and press Enter.PowerShell
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
- PowerShell asks
Do you want to change the execution policy?and lists some choices. Type Y and press Enter. The default answer is N, so if you press Enter without typing Y, nothing changes. - Run
npm run devagain.
This only changes the setting for your own account, and it doesn't need an administrator. Scripts on your computer can run. Scripts downloaded from the internet still need a signature.
Try one change
Leave the app running and go back to Claude Code (open a second terminal and run claude there if you stopped it). Ask for one small change and watch the page.
On the home page, change the line under the title to "Where the small fries eat". Then tell me which file you changed.
Switch to your browser. The page updates on its own, without a reload. That loop is what you'll do for the rest of the guide: ask, look, adjust.
What Claude made
You don't need to read these yet. It helps to know what they are.
app/page.tsxis your home page. This is the file Claude changed in the last step.package.jsonlists what your app is made of and the commands that run it, likenpm run dev.node_modulesholds the downloaded parts. It's huge, and you never edit it. Git ignores it..gitignoretells Git which files to leave out of your history. In Chapter 9 it keeps your secrets out of GitHub.AGENTS.mdis a note for AI assistants like Claude. Next.js adds it.planis the folder you made.
About the security warnings
When Claude installs the packages, npm may print something like “7 moderate severity vulnerabilities”. On our run, every one came from a code-checking tool that only runs on your computer while you build. None of it ships with your app. Don't run npm audit fix --force to make it go away. That command can break your app by installing different versions. Chapter 18 covers what to do about warnings.
Checkpoint
0 of 4Next step: your app only exists on this computer. In Chapter 7, you'll save it to GitHub and put it online with Vercel, so you have a real address to share.
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.