Build a Go Blog

Build Cedarline Post with Go, Chi, html/template, Simple.css, SQLite, gorilla/sessions, owned post CRUD, search, password recovery, and Fly.io / Render deploy notes.

  • Difficulty Intermediate
  • Parts 12
  • Stack Go, Chi, html/template, Simple.css, SQLite, gorilla/sessions, bcrypt

How this project works

Cedarline Post is an original teaching blog in twelve complete snapshots. Clone once and run any numbered folder without rebuilding earlier stages.

The path starts with a tiny HTTP server and Chi routing, adds html/template and Simple.css, then introduces a SQLite file per snapshot. Later parts add sessions, media, ownership, pagination, search, reset tokens, and deploy notes.

Snapshots 4–12 seed ada@example.com and grace@example.com with password123.

Each stage keeps its own DATABASE_PATH SQLite file so you can reset by deleting the database file.

Open GitHub repo →

Parts in order

Work through the parts in sequence. Each lesson explains the ideas, then points you to a runnable GitHub snapshot.