From 13f9f85b5c129a59f411bf4333f511eb0a9f9937 Mon Sep 17 00:00:00 2001 From: Sandro Speth Date: Mon, 21 Oct 2024 13:33:43 +0200 Subject: [PATCH] Add second example --- .vitepress/components/DiagramList.vue | 1 + diagrams/webshop-excerpt-sample.yaml | 68 +++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 diagrams/webshop-excerpt-sample.yaml diff --git a/.vitepress/components/DiagramList.vue b/.vitepress/components/DiagramList.vue index 5184a28..bc95d85 100644 --- a/.vitepress/components/DiagramList.vue +++ b/.vitepress/components/DiagramList.vue @@ -35,6 +35,7 @@ onClickOutside(dialog, () => { const diagrams: Record Promise> = { "Hello world": () => import("../../diagrams/hello_world.yaml?raw"), + "Webshop Except Sample": () => import("../../diagrams/webshop-excerpt-sample.yaml?raw"), } async function openDiagram(name: string) { diff --git a/diagrams/webshop-excerpt-sample.yaml b/diagrams/webshop-excerpt-sample.yaml new file mode 100644 index 0000000..41bc68b --- /dev/null +++ b/diagrams/webshop-excerpt-sample.yaml @@ -0,0 +1,68 @@ +Inventory: + name: Inventory Service + template: Microservice + interfaces: + inventory_GraphQL: + name: GraphQL + template: GraphQL + relations: + - to: Kubernetes + template: Hosted on + - to: InventoryDB + template: DB connection + - to: Apollo + template: Includes +InventoryDB: + name: InventoryDB + template: Database +Apollo: + name: Apollo + template: Library +ShoppingCart: + name: Shopping Cart Service + template: Microservice + interfaces: + shoppingCart_REST: + name: REST + template: REST + relations: + - to: inventory_GraphQL + template: Calls + - to: Kubernetes + template: Hosted on +Order: + name: Order Service + template: Microservice + interfaces: + order_REST: + name: REST + template: REST + relations: + - to: inventory_GraphQL + template: Calls + - to: Kubernetes + template: Hosted on + - to: ExpressJS + template: Includes +ExpressJS: + name: Express.js + template: Library +APIGateway: + name: API Gateway + template: Misc + relations: + - to: shoppingCart_REST + template: Calls + - to: inventory_GraphQL + template: Calls + - to: order_REST + template: Calls +Frontend: + name: Frontend + template: Frontend + relations: + - to: APIGateway + template: Calls +Kubernetes: + name: Kubernetes + template: Infrastructure \ No newline at end of file