mcpField
A
axum-rust-template

axum-rust-template

github.com/rebyteai-templateDevelopment1766 installsUpdated 19w ago
Repository

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

  1. 01Build APIs with Axum
  2. 02Use Rust and Diesel ORM
  3. 03Apply DDD architecture
  4. 04Configure a PostgreSQL database

Use cases

  1. 01Start a Rust API project
  2. 02Create a service using Diesel
  3. 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-template

After installing, type/axum-rust-templatein Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported