// the journey of a change

Six stops, zero copy-paste.

Every fix, tweak and new page takes the same trip. Nobody drags files onto a server by hand, so every change is checked, recorded, and easy to undo.

06 visit your browser You type the address, the internet's phone book points the way, and the page builds itself on your screen.
$git commit -m "feat: add a for nerds page"
→pull request opened · checks passed✓
→github actions · pnpm build · complete✓
→docker push coding-with-court:latest✓
→redeploy · status: live✓
→GET /for-nerds 200 OK✓
$

// red, green, refactor

We write the test before the code.

It sounds backwards, and it's our favourite habit. Before we build anything, we write a small automated check that says what "working" looks like. Here's a real one from this website: a trap for spam bots.

150 tests guard this website, and every new feature brings its own.

tests/api/contact.test.ts

it('returns success silently when honeypot is filled (no email sent)', async () => {  const res = await POST(request({ website: 'http://spam.com' }));  expect(res.status).toBe(200);  expect(mockSend).not.toHaveBeenCalled();});
it('…honeypot is filled', async () => {  const res = await POST(    request({ website: 'spam.com' }));  expect(res.status).toBe(200);  expect(mockSend)    .not.toHaveBeenCalled();});

src/pages/api/contact.ts

const website = body.website ?? '';// …check the name, email and message…await resend.emails.send(email);return ok();
const website = body.website ?? '';if (website) {  return ok(); // it's a bot}// …check the name, email and message…await resend.emails.send(email);return ok();
const honeypot = body.website ?? '';if (honeypot) return ok(); // shh// …check the name, email and message…await resend.emails.send(email);return ok();
const honeypot = body.website ?? '';// …check the name, email and message…await resend.emails.send(email);if (honeypot) return ok(); // shhreturn ok();
const honeypot = body.website ?? '';if (honeypot) return ok(); // shh// …check the name, email and message…await resend.emails.send(email);return ok();

$ pnpm test

✗ returns success silently when …honeypot is filled

→ expected no email, but 1 was sent

Tests 1 failed | 149 passed (150)

✓ returns success silently when …honeypot is filled

Tests 150 passed (150)

running

green Fixed before it shipped Put it back and it's green again. That's the deal: every feature arrives with its own little guard, and the guards never get bored.

// what a website is made of

It's a layer cake.

Every page you've ever visited is the same four layers stacked up. Tap one to pull it out of the stack.

HTML · the sponge The base everything sits on. Headings, paragraphs, buttons: everything you can point at starts here.

// the neighbourhood

A website has a lot of friends.

Your site sits in the middle, trading messages with a handful of services that each do one job well. If they had a group chat, it would go like this.

pick a moment below and watch who talks to whom

who's who · 7 services, one line each
  • GitHub · where the code lives

    Every change is saved with a note, so nothing gets lost and anything can be undone.

  • Docker Hub · the warehouse

    Each finished build is stored here as a sealed container, ready to ship.

  • Railway · the server

    Runs the container and answers whenever a browser asks for a page.

  • Cloudflare · the phone book

    Turns a web address into the right server. Some of our sites live on Cloudflare entirely.

  • Resend · the mail carrier

    When someone fills out a contact form, Resend delivers it to an inbox.

  • Google Workspace · the inbox

    Where those messages land, with records that prove the email really came from us.

  • Google Analytics · the visitor counter

    How many people stopped by and what they looked at, so reports run on numbers, not vibes.

// build-a-site

Twelve parts, one website.

Every tool we use does one job on a real site. Drag them onto the page, or tap them, and watch a bakery's website come together.

the page

the engine

the shipping

Here's the finished site, with every part in place. Each part says what it did.

12 / 12 parts

// break time

Every website has bugs. Go squash some.

A tiny arcade game, built from scratch for this page. Clear a wave, merge an upgrade, and watch your ship's firepower grow. The rules have tests, obviously.

Squash bugs. Merge upgrades. Try not to ship anything broken.

arrows or WASD to fly · it fires by itself · P to pause drag anywhere to fly · it fires by itself

upgrades · 8 commits you can merge

$ git log --upgrades · clear a wave, merge one

  • 53b3a22feat: spread shotTwo more shots, fanned out. The outer ones hit softer.
  • c3e494ffeat: add a linterShots go through one more bug.
  • 0ec0678feat: migrate to typescriptYour centre shot steers toward bugs ahead of it.
  • f0f231cfeat: pair programmingA wingman drone fires with you.
  • 95ecad6revert: rear gunAlso fires behind you. Bugs sneak.
  • 3aee9c8refactor: stronger shotsEvery shot hits half again as hard.
  • 1aa42b5test: add coverageA shield that catches one hit, topped up every wave.
  • 7058293chore: refill coffeeOne more life.

$ cat bugs.txt

  • bugsArrive in wriggling squads, and bite back from wave two.
  • errorsTake a few hits, and fire back.
  • fork bombsBurst into three more bugs.
  • race conditionsTiny, fast, and aimed at wherever you're sitting. Keep moving.
  • daemonsFrom wave 4. Settle in at the back and keep firing until you take them down. Tough.
  • false positivesFrom wave 8. Look like bugs, worth nothing, and homing shots can't resist them.
  • memory leaksFrom wave 8. Creep up out of the bottom corners. Corners aren't safe.
  • every fifth waveA boss, usually a file nobody wants to touch. Beat the one on wave 20 to ship.

// try it yourself

Go on, type something.

This is a pretend terminal, the text window we spend our days in. It can't break anything. We checked.

Welcome, guest. Type help to see what this terminal can do.

Want a site built like this?

You get all of the above without needing to know any of it. We usually reply within one business day.