| Crates.io | axumate |
| lib.rs | axumate |
| version | 0.1.0 |
| created_at | 2025-09-28 16:33:32.933051+00 |
| updated_at | 2025-09-28 16:33:32.933051+00 |
| description | A CLI tool for Axum framework. |
| homepage | https://github.com/mohammad79sss/axumate |
| repository | https://github.com/mohammad79sss/axumate |
| max_upload_size | |
| id | 1858476 |
| size | 44,440 |
NestJS-inspired scaffolding for Axum web applications. Quickly generate Modules, Controllers, Services, DTOs, Entities, and Middlewares with a clean, opinionated project structure.
Axumate is designed for developers who want to:
cargo install axumate
axumate new my_project
This generates a minimal Axum project and installs the required dependencies.
cd my_project
axumate generate module hero
This scaffolds the following structure:
src/
├── hero/
│ ├── dto/
│ │ └── hero_dto.rs
│ ├── entity/
│ │ └── hero_entity.rs
│ ├── hero_controller.rs
│ ├── hero_service.rs
│ └── mod.rs
├── lib.rs
└── main.rs
cargo run
Then visit: http://127.0.0.1:3000/hero
In addition to modules, you can generate controllers, services, DTOs, entities, and middlewares individually.
For example, to generate a middleware:
axumate generate middleware logger
Other supported generators:
axumate generate controller <name>axumate generate service <name>axumate generate dto <name>axumate generate entity <name>Axumate enforces a modular, NestJS-inspired layout, where each feature lives in its own directory. This helps keep large projects organized and maintainable:
This structure grows naturally as your project scales, without losing clarity.
License: MIT