Chapter 1: Ground Zero
Scaffolding a Project
Scaffolding a Project
Now let's use Claude Code to scaffold a real Next.js project — the todo app we'll build throughout this course.
Create the project
Start Claude Code and give it a clear instruction:
Then type:
"Create a new Next.js project called 'todo-app' with TypeScript, Tailwind CSS, and the App Router. Use the src directory structure."
Don't worry about what TypeScript, Tailwind CSS, or App Router mean yet — Claude Code handles the technical choices. You'll learn what each one does as you build with them.
Claude Code will run create-next-app for you and handle all the setup options. It knows the latest Next.js conventions.
What Claude Code does
Watch as Claude Code:
- Runs
npx create-next-app@latest todo-appwith the right flags - Navigates into the project directory
- Verifies the installation by checking the file structure
- May suggest next steps or initial configurations
Explore the result
Ask Claude Code to explain what was created:
"What's the file structure of this project? Explain the key files."
todo-app/ ├── src/ │ └── app/ │ ├── layout.tsx — Root layout (wraps all pages) │ ├── page.tsx — Home page │ └── globals.css — Global styles ├── public/ — Static assets ├── package.json — Dependencies ├── tsconfig.json — TypeScript config ├── tailwind.config.ts — Tailwind configuration └── next.config.mjs — Next.js configuration
This is a great habit: after Claude Code does something, ask it to explain what happened. You learn the "why" alongside the "what".
Run the dev server
"Start the development server"
Claude Code will run npm run dev and tell you where to open your browser (usually http://localhost:3000).
Important: move into your project folder. Claude Code just created a todo-app directory. Before continuing, exit Claude Code (type /exit or press Ctrl+C), navigate into the project, and restart Claude Code:
From now on, always start Claude Code from inside the todo-app folder. This ensures Claude Code can see your project files and your CLAUDE.md (which we'll create next).
You now have a working Next.js project! In the next section, we'll learn about CLAUDE.md — the file that gives Claude Code persistent memory about your project.