Lab GuideCheckpoint
14:30 17:00

LAB GUIDE / SECTION 05

Checkpoint

Take a break. Before Phase 2 starts, everyone needs these:

  • https://<your-droid-name>.<your-subdomain>.workers.dev shows your name → section 3
  • Your Droid ID card is filled in and the page is themed by your homeworld → section 4
  • Your Card on the projector, with your Pixel Droid → section 3.4

Before you get coffee: start your Coding Agent install#

In Phase 2 a Coding Agent builds your Droid. If you don't already use one (Claude Code, Cursor, Codex, GitHub Copilot...), start installing OpenCode now so it's ready after the break:

sh
npm install -g opencode-ai

Already have an agent? Nothing to do now.

Missing something?#

Missing one? Use this break to catch up. Paste the solutions and push; nobody will judge. Phase 2 builds on a working page, so it's better to paste now than be stuck later.

MissingQuick fix
NamePaste the Mission 1 solution, then git push
ID card still says "unknown"Paste the Mission 2 solution over src/character.js, then git push. Still "unknown"? SWAPI may be down: check npx wrangler tail
Card on projectorRegister at https://arena.cf2026iscte.nobledemos.com/register
Changed CHARACTER_ID or your name after registeringRegister again with the same URL. It updates your Card

What you've learned so far#

You didThat's
Clicked DeployWorkers + Workers Builds (Git → CI/CD → the edge)
npm run devWrangler local dev on the real runtime
Edited varsConfig vs code, delivered through env
Two chained fetch calls to SWAPI, with a fallbackSubrequests to external APIs, and what to do when one fails
cacheTtlEdge caching
/api/cardYour Worker as an API that other services call

Next: Meet your Droid

Checks are saved automatically on this browser.

Your project

Pick your Droid Name first. Add the rest when you know it; every field is optional. These details stay in this browser and are never sent anywhere.

A nickname, not your full name. Used for your Student Worker and repo. Lowercase letters, numbers and hyphens; up to 40 characters.

The workers.dev subdomain you choose at signup. Same naming rules as your Droid Name.

Add this later, or paste a GitHub repo URL to fill your username and Droid Name.

My URL is different

Optional. Use your public https://…workers.dev URL. Paths and trailing slashes are removed. Leave blank to use your Droid Name and subdomain.

LIVE PREVIEW

Your droid will live at https://<your-droid-name>.<your-subdomain>.workers.dev

Your repo: github.com/<your-github-user>/<your-droid-name>