Blog Engines
Blog Engine — Go · Postgres
A refined, minimalist blog API in Go on Postgres — auth to publishing in four source files.
One schema, one API contract, eight implementations. This is the Go + Postgres take: stdlib net/http routing, pgx for storage, bcrypt-hashed local accounts issuing JWTs — plus drop-in Clerk and Auth0 verifier examples for when you'd rather not own passwords. Markdown posts, slugs, a publish flow, and nothing else.
What's inside
- Full CRUD + publish flow for markdown posts
- Local auth: users table, bcrypt, HS256 JWT
- Drop-in Clerk & Auth0 JWT verifier examples
- Raw SQL via pgx — no ORM
- schema.sql applied on startup
- compose stack — Postgres state in ./data, healthchecked
Quickstart
$ git clone https://github.com/devai-io/devai_boilerplates.git$ cd devai_boilerplates/blog-go-postgres$ docker compose up --build # API on http://localhost:8080
about this series
Part of the devai.io blog engine series: one contract, eight backends — compare languages on identical ground.