Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backend/expressjs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ sequenceDiagram
Service-->>ErrorMW: Throw Error
ErrorMW-->>Client: Standardized Error Response
end

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```
---## 1. Controller / Route Decoupling
### ❌ Bad Practice
Expand Down
5 changes: 5 additions & 0 deletions backend/graphql/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ sequenceDiagram
D-->>L: Return flat result set
L-->>R: Map results to specific users
R-->>C: Return JSON response

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```


Expand Down
5 changes: 5 additions & 0 deletions backend/microservices/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ sequenceDiagram

Msg->>Notification: Consume "UserCreated" Event
Notification-->>Notification: Send Welcome Email

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```
## 🔒 2. Security Best Practices

Expand Down
10 changes: 10 additions & 0 deletions backend/mongodb/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ sequenceDiagram
Repository-->>Service: Saved Entity
Service-->>Controller: Domain Response
Controller-->>Client: 201 Created (Response DTO)

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```
## 🔗 Entity Relationships

Expand Down Expand Up @@ -94,6 +99,11 @@ classDiagram
User "1" --> "*" Post : creates
User "1" --> "*" Comment : writes
Post "1" --> "*" Comment : contains

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```
---

Expand Down
5 changes: 5 additions & 0 deletions backend/mongodb/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ sequenceDiagram
Mongo->>Validation: Process $jsonSchema constraints
Validation-->>Storage: Write document
Storage-->>App: Return success

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```


Expand Down
5 changes: 5 additions & 0 deletions backend/nestjs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ sequenceDiagram
Repo-->>Service: Domain Entity
Service-->>Controller: Result (mapped to DTO)
Controller-->>Client: HTTP Response

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```

---
Expand Down
5 changes: 5 additions & 0 deletions backend/postgresql/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ sequenceDiagram
App->>DB: Execute Parameterized Query
DB-->>App: Return Result Set
App->>Pool: Release Connection

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```
## 🔒 2. Security Best Practices

Expand Down
5 changes: 5 additions & 0 deletions backend/redis/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ sequenceDiagram
App->>Redis: SETEX Cache Key with TTL
App-->>Client: Respond with Data
end

%% Added Design Token Styles for Mermaid Diagrams
classDef default fill:#e1f5fe,stroke:#03a9f4,stroke-width:2px,color:#000;
classDef component fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000;
classDef layout fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000;
```
## 🔒 2. Security Best Practices

Expand Down
Loading