API & Backend
Rust CRUD API — Warp · Postgres
A JWT-secured REST API in Rust: Warp handlers, sqlx, Postgres, role-based routes.
A production-shaped Rust boilerplate. Warp handlers over sqlx/Postgres, argon2-style password hashing, JWT auth with role checks on most routes, and a full users / articles / comments CRUD surface. Includes the project's docker-compose (API, Postgres, Adminer) and multi-stage Dockerfile. Catalogued as-provided — see its README to build and run.
What's inside
- Full users + articles CRUD, with comments
- JWT auth with role-based route guards
- sqlx over Postgres — typed queries
- argonautica password hashing
- docker-compose: API + Postgres + Adminer
- Multi-stage Dockerfile
Quickstart
$ curl -LO https://devai.io/downloads/rust-crud-sql-api.zip$ unzip rust-crud-sql-api.zip && cd rust-crud-sql-api$ cat README.md # requirements + how to run
about this series
One of the devai.io advanced Rust boilerplates — a real, batteries-included starting point for a Rust web API, catalogued as-is.
More in API & Backend
view allAPI & Backend
Rust CRUD API — Warp · MongoDB
The same JWT-secured Rust API, backed by MongoDB instead of Postgres.
RustWarpMongoDBJWT+1
View template zip + preview
API & Backend
Rust CRUD API — Actix · MongoDB
Actix-web 4 + MongoDB with JWT from cookie or Bearer, and structured logging.
RustActix-webMongoDBJWT+2
View template zip + preview