Back to articles
I Built a Production-Ready Rust Web API Starter Kit (axum-starter)

I Built a Production-Ready Rust Web API Starter Kit (axum-starter)

via Dev.to WebdevThomi Jasir

After 2 years of learning Rust, I finally shipped my first public project. It's a boilerplate starter kit for building Web API with Rust . The architecture is inspired by NestJS, Spring Boot, and Laravel. I took the best patterns from those and adapted them to work properly in Rust. GitHub: https://github.com/thomijasir/axum-starter The Stack Layer Technology Web Framework Axum 0.8 ORM Diesel 2.3 (SQLite dev / PostgreSQL prod) Auth JWT + Argon2 Docs OpenAPI / Swagger (dev only) Logging Tracing (structured JSON) IDs Snowflake (distributed-safe) Architecture pattern: Controller → Service → Repository . Strict unidirectional. Nothing leaks between layers. Get Running in 30 Seconds git clone https://github.com/thomijasir/axum-starter cd axum-starter ./run.sh dev Server starts at http://localhost:3099 . Swagger UI at http://localhost:3099/spec . Note: run.sh is the task runner. It auto-loads the correct .env file per environment so you don't set variables manually. Sample Endpoints Already

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles