Blog Engines
Blog Engine — Go · MongoDB
The Go blog engine on MongoDB — same API, document storage, zero migrations.
The Go implementation of the blog engine series, backed by MongoDB through the official driver. Identical API surface to its Postgres sibling — collections and startup-ensured indexes replace schema.sql, and everything else stays put: bcrypt local auth, JWTs, and drop-in Clerk/Auth0 verifier examples.
What's inside
- Full CRUD + publish flow for markdown posts
- Local auth: users collection, bcrypt, HS256 JWT
- Drop-in Clerk & Auth0 JWT verifier examples
- Official mongo-driver, no ODM
- Indexes ensured on startup
- docker-compose with healthchecked MongoDB
Quickstart
$ curl -LO https://devai.io/downloads/blog-go-mongo.zip$ unzip blog-go-mongo.zip && cd blog-go-mongo$ cp .env.example .env$ docker compose up --build
about this series
Part of the devai.io blog engine series: one contract, eight backends — compare languages on identical ground.