About axum-rust-template
An Axum template for building Rust APIs, intended for development projects using PostgreSQL. It combines Diesel ORM with DDD architecture and includes basic steps for building, database migrations, and running the application.
Key features
- 01Build APIs with Axum
- 02Use Rust and Diesel ORM
- 03Apply DDD architecture
- 04Configure a PostgreSQL database
Use cases
- 01Start a Rust API project
- 02Create a service using Diesel
- 03Set up a foundation for a PostgreSQL project
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ rebyteai-template/ rebyte-skills --skill axum-rust-templateAfter installing, type/axum-rust-templatein Claude Code to confirm it loaded.
Details
From the project READMEAxum 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
Comments
Markdown supported