What I learnt building a web app with Go and HTMX
summary
Built a playable multiplayer browser game called BanterBus that finishes (with minor bugs) while avoiding heavy JavaScript by using Go, HTMX, temple, Tailwind CSS, Postgres. Server returns HTML fragments, HTMX handles hx-get/post, hx-trigger, hx-target and loading indicators; WebSockets use the HTMX WS extension and hx-vals for message typing. Back end uses SQLC-generated queries, Goose migrations, Postgres for pubsub/advisory locks, and Playwright for video tests — a pragmatic full‑stack that actually ships.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:12Who is this talk for
- 2:58Why HTMX
- 6:06What is HTMX
- 8:34HTMX attributes explained
- 11:44Getting started with HTMX
- 13:48Why use HTMX
- 16:16Advanced HTMX features
- 18:42Alpine JS basics
- 20:31Go backend with templ
- 22:35Templ file structure
- 24:17Layouts in templ
- 24:59Localization in Go
- 26:02Postgres for side projects
- 27:04SQLC for Go and SQL
- 28:29Transactions with SQLC
- 29:31Dev tools and automation
- 30:57When not to use HTMX
- 31:58Q&A
