rebyteai-template

axum-rust-template

Rust Axum API with Diesel ORM and DDD architecture.

rebyteai-template 17 4 Updated 10mo ago
GitHub

Install

npx skillscat add rebyteai-template/rebyte-skills/axum-rust-template

Install via the SkillsCat registry.

SKILL.md

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