Skip to content

yusufocaliskan/rust-web-api-boilerplate

Repository files navigation

Intro

A Rust-based web application leveraging Actix Web for fast and scalable web services, MongoDB for database storage, and Shaku for dependency injection.

Features

  • ✅ MongoDB integration for a robust database layer.
  • ✅ MVC structure with Dependency Injection-like components (repository, service, controller).
  • ✅ Authentication baked right in for secure app development.
  • ✅ Fully tested—because quality matters.

Hit the ⭐️ if you like it.

Install MongoDb

    docker compose up

Start/Watch

    cargo watch -q -c -w src/ -x run

Testing

Run the following command to test:

    cargo watch -w tests -x "test -- --nocapture"

Http Test

    cargo watch -q -c -w tests/ -x "test  -q test_create_user -- --nocapture"

or

    cargo test

About

A Rust-based web application leveraging Actix Web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages