MCPcopy Index your code
hub / github.com/Thodin/axum-clean-architecture

github.com/Thodin/axum-clean-architecture @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
37 symbols 52 edges 24 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Clean Architecture in Axum

This is an example of how to apply the principle of Clean Architecture (by Robert Martin) to an Axum project. Please note that I made some adaptations, which seem to be more practical for my use cases.

Feel free to use this repo as a template for your projects.

YouTube video with explanations: https://youtu.be/TrNpyFMtnzI

Extension points exported contracts — how you extend this code

UserPersistence (Interface)
(no doc) [2 implementers]
src/application/use_cases/user.rs
UserCredentialsHasher (Interface)
(no doc) [2 implementers]
src/application/use_cases/user.rs

Core symbols most depended-on inside this repo

add
called by 2
src/application/use_cases/user.rs
postgres_persistence
called by 1
src/infra/mod.rs
argon2_password_hasher
called by 1
src/infra/mod.rs
create_app
called by 1
src/infra/app.rs
init_db
called by 1
src/infra/db.rs
init_app_state
called by 1
src/infra/setup.rs
init_tracing
called by 1
src/infra/setup.rs
router
called by 1
src/adapters/http/routes/mod.rs

Shape

Method 12
Class 11
Function 11
Interface 2
Enum 1

Languages

Rust100%

Modules by API surface

src/application/use_cases/user.rs10 symbols
src/adapters/http/routes/user.rs4 symbols
src/adapters/persistence/user.rs3 symbols
src/adapters/persistence/mod.rs3 symbols
src/infra/setup.rs2 symbols
src/infra/mod.rs2 symbols
src/infra/config.rs2 symbols
src/adapters/http/app_state.rs2 symbols
src/adapters/crypto/argon2.rs2 symbols
src/main.rs1 symbols
src/infra/db.rs1 symbols
src/infra/app.rs1 symbols

For agents

$ claude mcp add axum-clean-architecture \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact