Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 REST API Project (Rust + Axum)

A lightweight, modular, and fully async REST API built with Rust, Axum, and SQLx.
This project demonstrates clean architecture, type‑safe database access, structured error handling, and idiomatic Rust patterns for building modern backend services.


🚀 Features

  • Axum‑based HTTP server with clean routing
  • PostgreSQL database integration via SQLx (async + compile‑time checked queries)
  • Layered architecture (routes → handlers → services → DB)
  • Centralized error handling with custom DBError enum
  • Environment‑based configuration using .env
  • Hot‑reload support via bacon or cargo-watch
  • Fully async using Tokio runtime

🛠 Prerequisites

  • Rust (latest stable)
  • Cargo
  • PostgreSQL
  • SQLx CLI (optional but recommended)

Install SQLx CLI:

cargo install sqlx-cli

About

REST API Project (Rust, Tokio, Axum)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages