all templates
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

Browse the code

The full source, exactly as the zip ships it.

loading…
Download .zip
loading tree…

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.