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
- docker-compose with healthchecked Postgres
Quickstart
$ curl -LO https://devai.io/downloads/blog-rust-postgres.zip$ unzip blog-rust-postgres.zip && cd blog-rust-postgres$ 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.