Blog Engines
Blog Engine — Rust · Postgres
The blog engine in Rust — axum handlers, sqlx queries, argon2 hashing.
The Rust + Postgres member of the blog engine series: axum on tokio, sqlx with runtime queries (no macros to fight), argon2 password hashing and jsonwebtoken for sessions. The same eight-endpoint contract as every sibling, expressed in ownership-clean Rust with proper error types.
Variants
What's inside
- Full CRUD + publish flow for markdown posts
- Local auth: users table, argon2, HS256 JWT
- Drop-in Clerk & Auth0 JWT verifier examples
- sqlx runtime queries — no ORM, no macro ceremony
- 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-rust-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.