Set Up Claude Code.
The boring-but-critical setup work. Install Claude Code on your machine, get a project folder ready, and run your first command. Half an hour, max.
What Claude Code is, briefly
Claude Code is a version of Claude that runs in your computer's terminal — the typing window where you'd run commands. The difference from chatting with Claude in your browser: this version can actually create and edit files on your computer. You don't copy code out of a chat and paste it into a file. You ask Claude to build something, and Claude writes the files for you.
That's the magic for website work. Prompt → Claude makes the files → you look at them in your browser → prompt again to change things. The whole site lives in a folder on your computer. When you're ready, you put the folder on the internet (covered in Chapter 09).
Do you need it?
Honest answer: not for everything. If you're building a single-page site or you just want to play, claude.ai is fine — Claude can give you a complete HTML file, you save it, you open it in a browser. Simple.
But if you're building a real multi-page site for a real client, Claude Code is worth the 30 minutes of setup. Here's the rough divide:
| claude.ai (browser) | One file, simple sites, learning. No install required. Free or cheap. |
| Claude Code (terminal) | Multi-file sites, real client work, repeated edits, Git/GitHub integration, reading existing code in a project. Requires install. |
Before you start
You need:
- An Anthropic account — same login you'd use for claude.ai. You'll authenticate Claude Code with it.
- A computer running macOS or Windows (Linux works too, but this guide covers Mac/Windows).
- 15 to 30 minutes.
You don't need to know how to code. You will need to type a few commands into a terminal. If terminals scare you, take a deep breath — you can copy-paste every command in this chapter.
Install
Pick your operating system:
1. Open Terminal
Press ⌘ + Space to open Spotlight, type Terminal, press Enter. A small window with text appears. That's your terminal.
2. Install Node.js
Claude Code is distributed via npm (a tool that comes with Node.js). The easiest way to install Node on Mac is via the official installer:
- Go to nodejs.org
- Download the LTS version (the one labeled "Recommended For Most Users")
- Run the .pkg installer, click through the prompts
Verify it worked. In Terminal, type:
npm --version
You should see two version numbers. If you see "command not found," restart Terminal and try again.
3. Install Claude Code
In Terminal, paste this:
It'll think for a minute, scroll some text, and finish. If you get a permissions error, prefix with sudo (you'll be asked for your Mac password):
4. Sign in
Type:
The first time you run it, Claude Code will open a browser window and ask you to sign in to your Anthropic account. Do that. Come back to the terminal — you're in.
1. Install Windows Terminal (if you don't have it)
Skip this if you already use a recent Windows Terminal. Otherwise, install it from the Microsoft Store — search "Windows Terminal." It's free and significantly nicer than the old Command Prompt.
2. Install Node.js
- Go to nodejs.org
- Download the LTS Windows installer (.msi)
- Run it, click through the prompts. The default options are fine. Make sure "Add to PATH" is checked.
Open Windows Terminal (or PowerShell) and verify:
npm --version
Two version numbers means you're good. Restart Terminal if it doesn't recognize the commands.
3. Install Claude Code
In Windows Terminal, paste:
If you hit a permissions error, run Windows Terminal as Administrator (right-click the Windows Terminal icon → Run as administrator) and retry.
4. Sign in
Type:
A browser opens and you sign in with your Anthropic account. Come back to the terminal — Claude Code is ready.
Set up your project folder
Claude Code works inside a folder. One folder per project. The standard practice is to keep all your project folders inside a parent folder called GitHub (since most of these will eventually be pushed to GitHub). Like this:
~/Documents/GitHub/
├── client-acf/
├── client-zuda/
└── personal-site/
# Windows
C:\Users\YourName\Documents\GitHub\
├── client-acf\
├── client-zuda\
└── personal-site\
Create a new project folder
In Terminal:
mkdir -p ~/Documents/GitHub/my-first-site
cd ~/Documents/GitHub/my-first-site
# Windows (PowerShell)
mkdir $env:USERPROFILE\Documents\GitHub\my-first-site
cd $env:USERPROFILE\Documents\GitHub\my-first-site
Now you're inside the folder. From this folder, run:
Claude Code is now running with this folder as its workspace. Anything you ask Claude to build will land in this folder.
Your first build
With Claude Code running, type a prompt and hit Enter. Try:
"Build me a single-page website for a fictional bakery. Use a warm cream background, a serif headline font, and one bold accent color. Mobile-friendly."
Claude will think for a moment, then write an index.html file (and probably a CSS file) right into your folder. Now you need to look at what Claude built — see the next section.
Previewing your site as you build
Claude is making files. You need to see them. Here's how, from simplest to best.
The quick way: double-click the file
Open your project folder in Finder (Mac) or File Explorer (Windows). Double-click the file called index.html. Your browser opens it. You see your site.
This works fine for a single-page experiment. It starts being weird once you have more than one page or anything that loads images from your folder — links between pages can break, some things just don't display right. So for any real project, use the next method.
The better way: a tiny "local website" you visit in your browser
You can run a small program on your computer that pretends to be a web host — just for you, just on your computer. It hands your site to your browser the same way a real website would. This makes everything work properly: clicks between pages, images, the whole thing.
You don't have to install anything new for this. Most computers already have a tool called Python built in, and Python can do this for you in one command.
Step 1. Open Terminal (Mac) or PowerShell (Windows). Get into your project folder by typing:
cd ~/Documents/GitHub/your-project
# Windows
cd $env:USERPROFILE\Documents\GitHub\your-project
Step 2. Start the little local website:
python3 -m http.server 8000
# Windows (if "python" doesn't work, try "python3")
python -m http.server 8000
You'll see a line of text that says something like "Serving HTTP on...". Leave that terminal window open and running.
Step 3. Open your browser and go to:
Your site shows up. Every time Claude makes a change, you save the file and just refresh the browser to see it. When you want to stop the local website, click back in the terminal window and press Ctrl + C.
If you'd rather not deal with the terminal at all for this, you can ask Claude Code to start it for you in a separate window. Try: "start a local web server in this folder so I can preview at localhost:8000 in another terminal."
Looking at it on your phone
You have to look at the site on your actual phone before you ship anything. Sites look very different on a phone than on a desktop browser, even if you make the browser window narrow. Here's how to do it while you're still building:
-
Make sure your phone and computer are on the same WiFi
If they're on different networks, your phone can't reach your computer. Same WiFi name = good.
-
Find your computer's address on the WiFi
This is just a number, like a phone number for your computer. It looks like
192.168.1.42.Mac: System Settings → Wi-Fi → click the (i) next to your network → look for "IP Address."
Windows: open PowerShell and type
ipconfig. Look for "IPv4 Address" — it's the line with four numbers separated by dots. -
Make sure the local website is running (the Python command from above)
Same command, same terminal window. If it stopped, start it again.
-
On your phone's browser, type your computer's address followed by
:8000So if your computer's address is 192.168.1.42, you'd visit:
http://192.168.1.42:8000Your site loads on your phone. Now you can see what visitors will see.
-
If your phone says "can't connect"
Your computer's firewall is probably blocking the connection. On Mac: System Settings → Network → Firewall → allow incoming connections (or temporarily turn the firewall off while testing). On Windows: when you ran the Python command for the first time, Windows probably popped up a window asking if you want to allow it — say yes. If you missed that, look in Windows Defender Firewall settings for Python.
Other things you might install along the way
You don't need any of these on day one. They show up when you need them. Listing here so it's not a surprise later:
- Git — for saving versions of your work and pushing it to GitHub later (covered in Chapter 09). Macs usually have it already (you'll be asked to install Apple's developer tools the first time you use a git command — say yes). Windows: install from git-scm.com.
- Netlify CLI — only if you're building little AI tools (covered in Chapter 11). You'll install it with one command when you get there.
- VS Code Live Server extension — an alternative to the Python method. If you'd rather click a button than run a command, install VS Code (a free editor), install its Live Server extension, then right-click any HTML file and choose "Open with Live Server." It also auto-refreshes when you save, which is nice.
The whole build loop
End to end, here's what your work will look like once everything's set up:
- You're in Claude Code in one terminal window.
- You ask Claude to build or change something. Claude writes the files.
- The local website (Python in another window) is already running, so your site is live at localhost:8000.
- You refresh your browser (or your phone) to see the change.
- Don't like something? You ask Claude to change it. Refresh again.
- Repeat until you're happy, then put the site on the real internet (Chapter 09).
Things that go wrong (and the fix)
- You type
claudeand it says "command not found" — close your Terminal window completely and open a new one. That fixes it 90% of the time. If it still doesn't work, try reinstalling — on Windows make sure you check the box that says "Add to PATH" during the Node installer. - Claude says it can't find or write to your files — you're probably running Claude from the wrong folder. Make sure you typed
cdinto your project folder before runningclaude. To check where you are: typepwdon Mac or justcdon Windows and hit enter. - The install command fails because of "permission denied" — on Mac, run the same command but put
sudoin front (it'll ask for your Mac password). On Windows, close Terminal and reopen it by right-clicking it and choosing "Run as administrator." - You accidentally delete or break a file — Claude Code can't undo for you. That's exactly what Git (covered in Chapter 09) is for. Once your work is on GitHub, you can always go back to yesterday's version.
If terminals are too much, here's the simpler path
Skip the install. Use claude.ai in your browser. You can still build real websites — you just won't have the project-folder-aware workflow. Steps:
- Open claude.ai
- Start a chat: "Build me a single-page website for X. Output as a complete HTML file with embedded CSS."
- Claude will return code in the chat. Click the download button (or copy-paste it into a file you save as
index.html). - Open the file in a browser to preview.
- For changes, ask Claude in chat ("make the hero darker") and it'll output the updated file.
This works fine for one-page sites. Multi-page or "edit this existing thing" workflows are where Claude Code earns its keep.
Setup for the ACF build
For ACF, I created the folder ~/Documents/GitHub/ACF and ran claude inside it. Pasted the brand guide as the first prompt — colors, typography, voice, the page list — and asked Claude to start with the homepage. The whole site grew inside that one folder, file by file, over several sessions.
Later I connected that folder to a GitHub repo so I had version history and could deploy via Netlify. That step is in Chapter 09. For now, just get Claude Code installed and your project folder ready.
What's next
You have Claude Code running and a project folder. Now you need the right tools to point Claude at — fonts, color tools, animation libraries, the resource kit. Next chapter is the curated tool list I actually use.