axum-rust-template
Rust Axum API with Diesel ORM and DDD architecture.
When & Why to Use This Skill
This Claude skill provides a comprehensive boilerplate for developing high-performance Rust web APIs. Leveraging the Axum framework, Diesel ORM, and PostgreSQL, it implements a Domain-Driven Design (DDD) architecture to facilitate the creation of scalable, maintainable, and type-safe backend services.
Use Cases
- Project Scaffolding: Quickly bootstrap a production-ready Rust backend with pre-configured routing, database integration, and architectural patterns.
- Clean Architecture Implementation: Apply Domain-Driven Design (DDD) principles to manage complex business logic and ensure long-term code maintainability.
- Type-Safe Database Operations: Seamlessly integrate PostgreSQL with Diesel ORM for secure, compile-time checked database migrations and queries.
| name | axum-rust-template |
|---|---|
| description | Rust Axum API with Diesel ORM and DDD architecture. |
Axum Rust API
A Rust Axum API with Diesel ORM and DDD architecture.
Tech Stack
- Framework: Axum
- Language: Rust
- ORM: Diesel
- Architecture: DDD
- Database: PostgreSQL
Prerequisites
- Rust toolchain installed
- PostgreSQL
Setup
1. Clone the Template
git clone --depth 1 https://github.com/Eng0AI/axum-rust-template.git .
If the directory is not empty:
git clone --depth 1 https://github.com/Eng0AI/axum-rust-template.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template
2. Remove Git History (Optional)
rm -rf .git
git init
3. Build Project
cargo build
4. Setup Database
Configure database and run Diesel migrations.
Development
cargo run