getting-started
Set up the Website Foundation template from scratch — install dependencies, configure Cloudflare services, set secrets, and deploy. Use when the user says "set up", "get started", "first deploy", "con
SKILL.md.claude/skills/getting-started/SKILL.md
GitHubGetting Started
Guide users through the complete first-run setup of the Website Foundation template.
Prerequisites
- Node.js 18+ and Bun installed
- A Cloudflare account (free tier works)
- Wrangler CLI authenticated (
bunx wrangler login)
Setup Steps
- Clone and install — Clone the repository and run
bun install - Create local env file — Copy
.dev.vars.exampleto.dev.varsand fill in values - Start dev server — Run
bun run devto start atlocalhost:4321 - Configure wrangler.jsonc — Set
nameto your project name, changedestination_addressinsend_emailto your verified email - Configure Cloudflare services — See Cloudflare setup guide
- Set production secrets — Run
bunx wrangler secret put <KEY>for each secret listed in secrets reference - Update site URL — Change
siteinastro.config.mjsfromhttps://example.comto your actual domain - Deploy — Run
bun run deploy(builds then deploys via wrangler)
Local Development
The dev server uses platformProxy to simulate Cloudflare bindings locally. Secrets are read from .dev.vars (gitignored). The AI Gateway binding requires a real Cloudflare account even locally.
Verification
After setup, confirm:
bun run devstarts without errorsbun run checkhas no TypeScript errorsbun run testpasses all 42 testsbun run buildsucceeds