Download project at step 2 (.zip)

2 / 14

Step 2 · Build a live chat app

🤖 Create the app

rastrillo new bootstraps your app. It builds, its tests pass and it serves before you write a line. --scaffold accounts gives it sign-in: people get in with a link emailed to them, and can add a passkey, an authenticator app or a passphrase later.

The files you will edit live in internal/chat/:

  • models.go holds the database models.
  • routes.go lists every page the app serves.
  • handlers.go holds what each page does.
  • render.go draws pages from templates/.
  • app.go builds the app when it starts.

Tests live in internal/chat/*_test.go. Everything in the app is yours to edit from now on.

Check it worked

You'll find cmd, internal, Makefile and AGENTS.md in the new chat folder, among others.

🤖 These pages were written by an LLM, on the ideas, instruction, and editing of humans. AI-written text here is always marked, visibly — that's factor X.

Terminal
rastrillo new --scaffold accounts chat
cd chat