all templates
API & Backend

Rust CRUD API — Warp · MongoDB

The same JWT-secured Rust API, backed by MongoDB instead of Postgres.

The document-database sibling: Warp over the MongoDB driver, JWT auth with role checks, and the same users / articles / comments CRUD surface. Includes the project's docker-compose (API, MongoDB, mongo-express) and multi-stage Dockerfile. Catalogued as-provided and pinned to its original, older crate versions — see its README to build and run.

What's inside

  • Full users + articles CRUD, with comments
  • JWT auth with role-based route guards
  • Official MongoDB driver, typed models
  • argonautica password hashing
  • docker-compose: API + MongoDB + mongo-express
  • Multi-stage Dockerfile

Quickstart

$ curl -LO https://devai.io/downloads/rust-crud-nosql-api.zip$ unzip rust-crud-nosql-api.zip && cd rust-crud-nosql-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 Warp + MongoDB starting point with auth already wired, catalogued as-is.