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.

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.

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.

5Save 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.

6Put 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.

7Add 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.

8Keep 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.

9The 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.

10Stop 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.

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.