Free guide · Claude Code + Cloudflare

Build a full-stack website and put it in production.

You're reading the example. This page shows every prompt, command and click it took to build and launch productionizing.com, from the morning I bought the domain to launch. Hosting it costs $0.

$0to host the site, the API and the database
1domain, bought on Cloudflare
7prompts you can copy
1afternoon, idea to launch
00

Watch it first

The full walkthrough and the short version go here as soon as they're recorded. Everything they show is written out below, so you can start now.

Full walkthrough
coming soon
The 60-second version
coming soon
01

What it costs

Everything Cloudflare runs for this site sits inside its free plan. Two things cost money: the domain, and a paid Claude plan.

PieceCostThe free limit
Web pages (Workers static assets)$0Requests for static files are free and unlimited.
The API (Workers Free)$0100,000 requests a day.
The database (D1)$05 million rows read and 100,000 written a day, 5 GB stored.
Email at your domain (Email Routing)$0Forwarding to your inbox is free.
The domain (Cloudflare Registrar)Yearly feeCloudflare sells domains at cost, with no markup.
Claude CodePaid planNeeds Claude Pro or higher. The free Claude plan doesn't include it.
Why the pages are free

Static files are served before your code ever runs. The Worker only wakes up for /api/ calls, so page views never count toward the 100,000-a-day limit.

02

Install the tools

You need two things on your computer: Claude Code, and Node.js, which runs Cloudflare's command-line tool, Wrangler.

1. Claude Code

Terminal · macOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash

On Windows, use PowerShell instead: irm https://claude.ai/install.ps1 | iex. Then open a new terminal, run claude, and sign in with your Claude account.

2. Node.js

Get the LTS version from nodejs.org. Wrangler runs through npx, so there's nothing else to install.

3. A free Cloudflare account

Sign up at dash.cloudflare.com. Then connect your terminal to it once:

Terminal
npx wrangler login

A browser window opens and asks you to allow access. After that, Claude Code can create and deploy things on your account through Wrangler.

03

Add the skills before you build

Skills are instructions Claude loads when a task needs them. Two of them make a real difference here. Run these inside Claude Code: type claude to start it, then paste each line.

Cloudflare's plugin

Cloudflare's own plugin teaches Claude how Workers, D1 and the rest of the platform work, and connects Cloudflare's MCP servers so it can look things up in the live docs.

Inside Claude Code · run one, then the other
/plugin marketplace add cloudflare/skills
/plugin install cloudflare@cloudflare

Anthropic's frontend-design plugin

This is the difference between a page that looks like a template and one that looks designed.

Inside Claude Code
/plugin install frontend-design@claude-plugins-official
Only want the docs?

Skip the plugin and add Cloudflare's documentation server by itself: claude mcp add --transport http cloudflare-docs https://docs.mcp.cloudflare.com/mcp

04

Buy the domain on Cloudflare

I bought productionizing.com through Cloudflare Registrar at 10:13 this morning. Buying it there saves a whole step. Cloudflare sets up the domain on its free plan automatically, with its own nameservers already pointed at it, and it was active within minutes.

Click path: Cloudflare dashboard → Domain Registration → Register Domains → search for your name → buy it.

Already bought it somewhere else?

That works too. It costs you about ten extra minutes, plus however long DNS takes to update.

  1. In Cloudflare, choose Add a domain, type it in, and pick the Free plan.
  2. Cloudflare gives you two nameservers. At your registrar (GoDaddy, Namecheap and so on), replace the domain's nameservers with those two.
  3. Wait for the domain to show Active in Cloudflare. That's usually minutes, sometimes a few hours.
What happened when I did it

My first message to Claude had the wrong name, productizing.com. Claude ran a lookup and found that one registered at GoDaddy, not on my Cloudflare account. I corrected it, and the real one was already active on Cloudflare. Spell your domain out in the first prompt, and ask Claude to check it before it builds anything.

05

The first prompt

Make a new empty folder, open a terminal in it, and run claude. Then tell it what you're building. This is the message that started this site, word for word:

My actual first prompt
I want to create an HTML site hosted on Cloudflare that is a "how to use Claude Code and Cloudflare to create and generate full stack websites for free." I bought a domain today that we'll use as the example. Build the site and produce it as you go. Include email and everything from the moment the domain is purchased on Cloudflare to the launch.

Here's a cleaner version you can reuse for your own site:

Prompt 1 · Plan
I just bought YOURDOMAIN.com on Cloudflare. Build me a website for [what it is and who it's for].

Use Cloudflare Workers with static assets so hosting is free, and plain HTML, CSS and JavaScript unless you have a good reason not to. First, check that the domain is active on my Cloudflare account. Then show me the plan before you write any code: the pages, the sections, and anything that needs a database. Ask me what you need to know.

Answer its questions. In my case Claude asked three: whether to gate the guide behind an email address, what "email" meant, and whose brand it should carry.

06

Build it

Prompt 2 · Scaffold
Create the project: a wrangler.jsonc, a Worker in src/index.ts that only handles /api/* and hands everything else to static files in public/, and a package.json with dev and deploy scripts. Set compatibility_date to today.

This is the structure Claude made for this site:

The project
productionizing/
├── wrangler.jsonc        settings: name, static files, database
├── package.json          dev and deploy scripts
├── src/index.ts          the API (about 40 lines)
├── migrations/
│   └── 0001_stuck.sql    the database table
└── public/
    ├── index.html        this page
    ├── 404.html
    ├── robots.txt
    └── sitemap.xml
Prompt 3 · Design
Use the frontend-design skill. Design the homepage for [your audience]. Mobile first, fast, light and dark mode, no stock photos. My brand: [colors, fonts, a photo of you]. Run it with npx wrangler dev and show me before we deploy.

To look at it on your own machine:

Terminal
npx wrangler dev

Open the address it prints (usually http://localhost:8787). Ask for changes in plain English until it looks right.

07

Add a database

This is the full-stack part. This site has one small feature that needs a database: the "Stuck? Tell me" box at the bottom of this page. When you send a note, it goes to a table in Cloudflare D1.

Prompt 4 · Database
Add a D1 database called YOURSITE-db for [the feature]. Create it with Wrangler, write the table in migrations/, bind it to the Worker as DB, add the API route, and apply the migration to the live database. Check the input, and store only what we need.

These are the commands Claude ran:

Terminal
npx wrangler d1 create productionizing-db
npx wrangler d1 migrations apply productionizing-db --remote
What happened when I did it

Wrangler offered to add the database to the config file, but it can't ask a question when Claude is the one running it, so it answered no on its own. Claude added the four lines to wrangler.jsonc itself. If you see "Using fallback value in non-interactive context," that's all it means.

08

Deploy it

Prompt 5 · Deploy
Deploy with npx wrangler deploy and give me the workers.dev address. Then load every page and call the API on the live site, and tell me what you checked.
Terminal
npx wrangler deploy

Your site is now live at a free address ending in .workers.dev. Make sure it works there before you move it to your domain.

09

Put it on your domain

Prompt 6 · Custom domain
Put the Worker on YOURDOMAIN.com and www.YOURDOMAIN.com as custom domains in wrangler.jsonc, deploy again, and confirm both load over HTTPS.

This is the part of wrangler.jsonc that does it. Cloudflare creates the DNS records and the HTTPS certificate itself:

wrangler.jsonc
"routes": [
  { "pattern": "productionizing.com", "custom_domain": true },
  { "pattern": "www.productionizing.com", "custom_domain": true }
]
10

Get email at your domain

Cloudflare Email Routing gives you an address like hello@yourdomain.com and forwards everything sent to it into the inbox you already use. It's free, and it takes about five minutes in the dashboard.

  1. Turn it on. Open your domain in the Cloudflare dashboard, go to Email → Email Routing, and enable it. Cloudflare adds the mail records to your DNS for you.
  2. Add your real inbox. Under Destination addresses, add your Gmail (or any inbox). Cloudflare emails you a link. Click it, because forwarding stays off until you do.
  3. Create the address. Under Routing rules, choose Create address, type hello, set the action to Send to an email, and pick your inbox.
  4. Test it. Send a message to hello@yourdomain.com from a different account and watch it arrive.
Receiving, not sending

Email Routing only forwards mail that comes in. To reply as hello@yourdomain.com, you need a sending service set up separately. For a launch, receiving is all you need.

11

Launch check

Prompt 7 · Launch check
Run a launch check on the live site: a title and description on every page, a social share image, a favicon, robots.txt, sitemap.xml, a 404 page, and a phone-width test. Fix whatever is missing and tell me what you changed.

Then do the two things Claude can't do for you:

  • Open it on your phone and read the whole page.
  • Add the domain to Google Search Console and submit /sitemap.xml so Google finds it.
12

How this one went

The real timeline for productionizing.com, Tuesday, November 24, 2026 (Central time):

  1. Bought productionizing.com on Cloudflare Registrar. The domain was active on the Free plan within minutes.
  2. Sent Claude the first prompt. It caught the misspelled domain, then asked about an email gate, email and branding.
  3. Claude checked Cloudflare's and Anthropic's docs for the install commands and free limits, so every number on this page has a source.
  4. Set up the project, created the D1 database and applied the first migration.
  5. First deploy to the free workers.dev address. Twelve seconds later, a second deploy put it on productionizing.com and www.productionizing.com, with HTTPS included.
  6. Sent a test note through the "Stuck?" form on the live site, saw it land in the database, then deleted it.
  7. Turn on email at hello@productionizing.com, record the walkthrough, and put the videos at the top of this page.
13

Stuck? Tell me where

Pick the step and say what happened. The note goes straight into this site's database, which is the one from step 07. I read them, and the common snags get added to the guide.