Axum Rust Template

Rust Axum API with Diesel ORM and DDD architecture.

majiayu000 f882492 2 files · 1.7 KB Updated 567 repo stars

File contents

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

majiayu000/claude-skill-registry-data/tree/main/data/axum-rust-template commit f882492220

Frequently asked questions

npx skillmds add majiayu000/axum-rust-template