Primeros Pasos con Claude Code

You have heard of Claude. Maybe you tried it in the browser. Claude Code is the next step: instead of chatting, you describe what you want to build, and Claude actually builds it. This guide takes you from zero to a real website on the internet. No coding experience needed.


1Where Claude Code actually runs

Claude Code does not run in your browser. It runs in something called a terminal: a plain text window where you type commands. Think of it as a more direct way to talk to your computer.

From the terminal, Claude Code can see your files, create new ones, run your site locally so you can preview it, and push your finished work online. Everything happens there.

Why not just use the Claude website? You can, and it is great for writing and thinking. But Claude Code in the terminal can actually touch your files. It can build a whole project, not just describe one.

2Pick a terminal

You need a terminal app. Here are three good options:

Why terminal instead of the Claude app? Tabs. You can have multiple projects open at the same time, each in its own tab. It is like browser tabs but for work sessions.
On Windows? Install WSL first (Windows Subsystem for Linux). Open PowerShell as administrator and run wsl --install. Restart, open the Ubuntu app it adds, and continue from step 3 in there. WSL gives you a real Linux terminal inside Windows so everything below works the same.

3Install Claude Code

Open your terminal and run this one command:

# Install Claude Code
curl -fsSL https://claude.ai/install.sh | bash

That is it. The native installer handles everything - no Node.js or npm needed. It also auto-updates in the background so you always have the latest version.

Alternative: If you use Homebrew, you can also run brew install --cask claude-code. Note that Homebrew does not auto-update - you will need to run brew upgrade claude-code manually.

Now create a folder for your project and start Claude Code:

# Create a folder and go into it
mkdir my-first-site && cd my-first-site

# Start Claude Code
claude

The first time you run claude, it will ask you to log in with your Anthropic account and choose a plan. The free tier works for getting started.

Free vs Pro vs Max. Free gives you enough to try things out but you will hit limits. Pro ($17/month) is the right plan for actually building. Max is for heavy users running long sessions all day. Start free, upgrade when you hit a wall - which usually happens within the first week if you are building something real.
Useful keys inside Claude Code:
  • /help — list every command available
  • /clear — start a fresh conversation (use it often, it keeps Claude focused)
  • /model — switch between Claude models (Opus is smartest, Sonnet is faster, Haiku is cheapest)
  • /init — ask Claude to read your project and write a CLAUDE.md for you (see step 5)
  • Esc — interrupt Claude when it is going the wrong direction. Press it twice to also undo the last edit.

4Build your first site

Once Claude Code is running, just tell it what you want. Plain English. No special syntax.

You: Create a simple one-page website for my coffee shop.
      Name: Grounds, location: Malaga, Spain.
      Include a menu section and contact info.

Claude will create the files. Then follow up naturally:

Make the menu section bigger and add a hero image placeholder
Change the font to something warmer
Add a WhatsApp button in the corner

To preview your site in a browser while you work:

npx serve .
Serving at http://localhost:3000

Open that address in your browser. Every time Claude makes changes, reload the page to see them.

5Teach Claude about your project (CLAUDE.md)

The single biggest upgrade you can make is creating a file called CLAUDE.md in your project folder. It is a plain-English note that Claude reads at the start of every session. Stack you use, how you write, things to avoid, where the production site is. The more you put in here, the less you have to repeat yourself.

The fastest way to make one is to ask Claude:

You: /init

Claude will look around your project and write a starter CLAUDE.md for you. From there, edit it like a living document. A good one for a small website might look like:

# Project: Grounds Coffee

## Stack
- Plain HTML/CSS, no build step
- Hosted on Vercel, domain via Porkbun

## Brand voice
- Warm, short sentences. No emojis on the site.
- Always Spanish first, English second.

## Things to avoid
- No tracking scripts. No popups.
- Never commit anything from .env.local.

## Verify before claiming done
- Run npx serve . and load localhost:3000 to check the change.

Now every time you start claude in this folder, it already knows the rules. You stop sounding like a broken record.

This file is also how you get a brand voice. Tell Claude how you write - short sentences, no buzzwords, never em-dashes, whatever you want. It will match. The first time you read your site after this, it will sound like you, not like ChatGPT.

6Save your code on GitHub

GitHub is like Dropbox for code, but smarter. It stores every version of your project, so you can always go back. And it connects to tools that put your site online automatically.

First, create a free account at github.com. Then install the GitHub CLI and log in:

# Install GitHub CLI (Mac)
brew install gh

# Log in to your GitHub account
gh auth login

Follow the prompts -- it will open a browser to confirm. Then push your project:

# Initialize git, stage all files, commit
git init && git add . && git commit -m "first version"

# Create repo on GitHub and push
gh repo create my-first-site --public --source . --push
GitHub account = your developer ID. Once you have one, you can deploy to Vercel, Cloudflare, Netlify, and most other hosting platforms just by connecting your account. You only set this up once.

7Put it on the internet with Vercel

Vercel is the easiest way to host a website. Sign up at vercel.com using your GitHub account. Then:

That is it. Your site is live. Vercel gives you a free URL like “my-first-site.vercel.app” to share immediately.

From this point on, every time you push changes from your terminal, Vercel picks them up and redeploys automatically:

Edit locallyPush to GitHubVercel auto-deploysSite is live

Cloudflare Pages is a solid alternative to Vercel. Same idea, also free, and the CDN is faster in some regions. Worth trying if you hit limits.

8Add your own domain

The vercel.app URL works, but a real domain looks more professional. Buy one at Porkbun -- most domains cost $10-15 per year, with free privacy protection included.

Once you have a domain, go to your Vercel project settings, find the Domains section, and add it. Vercel will show you two records to add:

# Records to add in Porkbun (DNS settings)
A record:    @ → 76.76.21.21
CNAME record: www → cname.vercel-dns.com

In Porkbun, go to your domain’s DNS settings and add those two records exactly as shown. Then go back to Vercel -- it will check automatically and confirm when the domain is connected.

What is DNS? The internet’s phone book. When someone types your domain, DNS tells their browser which server to connect to. The records you’re adding are just entries in that phone book pointing to Vercel.
It is not instant. DNS changes can take anywhere from 5 minutes to 48 hours to spread around the world. Most of the time it is done within an hour. If your domain does not work right away, wait and check again. Nothing is broken.

9Keep your secrets safe

If your site uses any external service -- an AI API, a payment processor, a map, anything -- it comes with a key. Think of it like a password. If someone finds your key, they can use the service and you pay the bill.

The rule: never put keys in your code. Instead, create a file called .env.local in your project folder:

# .env.local -- never commit this file
ANTHROPIC_API_KEY=sk-ant-your-key-here
STRIPE_SECRET_KEY=sk-your-stripe-key
SOME_SERVICE_KEY=your-key-here

Then add .env.local to a file called .gitignore in the same folder:

# .gitignore -- files Git should never track
.env.local
node_modules/

Your project should look something like this:

my-first-site/
  index.html
  style.css
  script.js
  .env.local   ← your secrets, never committed
  .gitignore    ← tells Git to skip .env.local
  .git/
If you accidentally push a key to GitHub: rotate it immediately. Go to the service (Anthropic, Stripe, etc.), find the API keys section, and create a new one. Deactivate the old one. Then update your .env.local. Someone may have already copied it -- rotating is the only fix.

10The daily workflow

Once everything is set up, your day-to-day looks like this:

# Go to your project folder
cd my-first-site

# Start Claude Code
claude

# Tell it what to build...
You: Add a booking form to the contact section

# When done, push to GitHub
git add . && git commit -m "add booking form" && git push

Vercel picks this up and deploys automatically
Pro tip: you do not have to run the git commands yourself. Just tell Claude Code: “commit and push with the message: add booking form” and it will handle it.
When Claude goes off the rails. If it starts changing the wrong files or running away with a bad plan, press Esc to interrupt. Press it twice to also undo the last edit. Then explain what you actually wanted - Claude usually gets it on the second try. If a whole session feels stuck, type /clear and start fresh.

11Stop pressing Yes all the time

By default, Claude Code asks permission before doing anything -- writing files, running commands, etc. Useful when you are learning, but it gets old fast. Here are your options:

Option 1: Shift+Tab to auto-accept (recommended). Press Shift+Tab when Claude Code is running and it switches into auto-accept mode. It will do its work without stopping to ask. Press Shift+Tab again to go back to manual mode.

Option 2: Allowlist specific actions. You can tell Claude Code it is always allowed to do certain things. Create a file at .claude/settings.json:

{
  “permissions”: {
    “allow”: [
      “Bash(git:*)”,
      “Bash(npm:*)”,
      “Bash(npx:*)”
    ]
  }
}

Option 3: Skip permissions entirely. Run Claude with claude --dangerously-skip-permissions. It will never ask. Fine for a throwaway project, risky for anything real.

My setup: I use Shift+Tab when I want to let Claude run, and switch back to manual when I want to review changes step by step. The allowlist handles git and package installs which are always safe.

+What to learn next

Once the daily workflow feels normal, three things make Claude Code much more powerful. You do not need them on day one, but they are worth knowing about.

The fastest way to learn each of these is to try one when it makes sense. Do not chase them upfront. Build something boring first.


You’re set.

Here is what you now have running:

That is the same stack professionals use. You just set it up from scratch without writing a line of code yourself.

From here, keep asking Claude to build things. The more specific you are, the better the results. When something breaks -- and it will -- just paste the error message into Claude and ask it to fix it.