Skip to content

Commit 5406a58

Browse files
committed
Add facade diagram for user service
1 parent 32e7a2b commit 5406a58

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
graph TD
2+
subgraph "Client Layer"
3+
API[API Gateway]
4+
end
5+
6+
subgraph "Facade Layer (Express App)"
7+
EA[Express Application]
8+
UR[User Routes]
9+
AR[Auth Routes]
10+
MW[Middleware]
11+
12+
EA --> UR
13+
EA --> AR
14+
UR --> MW
15+
AR --> MW
16+
end
17+
18+
subgraph "Complex Subsystems"
19+
subgraph "Authentication"
20+
AC[Auth Controller]
21+
OC[OAuth Controller]
22+
JWT[JWT Handler]
23+
end
24+
25+
subgraph "User Management"
26+
UC[User Controller]
27+
UM[User Model]
28+
R[Repository]
29+
end
30+
31+
subgraph "Security"
32+
BAC[Basic Access Control]
33+
PH[Password Hasher]
34+
end
35+
end
36+
37+
subgraph "Database"
38+
DB[(MongoDB)]
39+
end
40+
41+
API --> EA
42+
MW --> AC
43+
MW --> UC
44+
MW --> BAC
45+
AC --> JWT
46+
AC --> PH
47+
OC --> JWT
48+
UC --> R
49+
R --> UM
50+
UM --> DB
51+
52+
classDef client fill:#f9f,stroke:#333,stroke-width:2px
53+
classDef facade fill:#bbf,stroke:#333,stroke-width:2px
54+
classDef subsystem fill:#bfb,stroke:#333,stroke-width:2px
55+
classDef database fill:#fbb,stroke:#333,stroke-width:2px
56+
57+
class API client
58+
class EA,UR,AR,MW facade
59+
class AC,OC,JWT,UC,UM,R,BAC,PH subsystem
60+
class DB database

0 commit comments

Comments
 (0)