Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrah committed Dec 13, 2024
1 parent 9a5467c commit f04ab10
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export default defineUserConfig({
"/use/",
"/llm/",
"/offline/",
"/develop/",
"/servicesai/"
"/develop/"
],
}),
plugins: [
Expand Down
32 changes: 32 additions & 0 deletions docs/src/develop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,38 @@ Generate a mermaid architecture diagram for a simple retail app with product cat

![copilot-diagram](../assets/images/copilot_diagram.png)

```sh
graph TD;
A[Client Application] -->|HTTP Requests| B[Express.js REST API Server]
B -->|Fetch Products| C[Product Controller - productController]
B -->|Fetch Product Details| D[Product Details Controller - productDetailsController]
B -->|Handle Cart Operations| E[Cart Controller - cartController]
B -->|Process Orders| F[Order Controller - orderController]
B -->|Manage User Accounts| G[User Controller - userController]
B -->|Handle Loyalty Program| H[Loyalty Controller - loyaltyController]

subgraph Database
I[MongoDB - mongoose]
end

subgraph Middleware
J[Authentication Middleware - passport]
K[Error Handling Middleware - errorHandler]
L[Logging Middleware - morgan]
end

B -->|Connects to| I
B -->|Uses| J
B -->|Uses| K
B -->|Uses| L

C -->|CRUD Operations| I
D -->|CRUD Operations| I
E -->|CRUD Operations| I
F -->|CRUD Operations| I
G -->|CRUD Operations| I
H -->|CRUD Operations| I
```

## 🧪 Exercise

Expand Down

0 comments on commit f04ab10

Please sign in to comment.