Skip to content

Commit

Permalink
Add three additional sample architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
spethso committed Oct 22, 2024
1 parent 13f9f85 commit b05c18c
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vitepress/components/DiagramList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ onClickOutside(dialog, () => {
const diagrams: Record<string, () => Promise<any>> = {
"Hello world": () => import("../../diagrams/hello_world.yaml?raw"),
"Webshop Except Sample": () => import("../../diagrams/webshop-excerpt-sample.yaml?raw"),
"TeaStore": () => import("../../diagrams/TeaStore.yaml?raw"),
"Sock Shop": () => import("../../diagrams/Sock-Shop.yaml?raw"),
"Train Ticket": () => import("../../diagrams/Train-Ticket.yaml?raw"),
}
async function openDiagram(name: string) {
Expand Down
182 changes: 182 additions & 0 deletions diagrams/Sock-Shop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
Frontend:
name: Frontend
template: Frontend
interfaces:
frontend_REST:
name: REST
template: REST
relations:
- to: APIGateway
template: Calls
- to: Kubernetes
template: Hosted on

APIGateway:
name: API Gateway
template: Microservice
relations:
- to: Frontend
template: Calls
- to: catalog_REST
template: Calls
- to: orders_REST
template: Calls
- to: users_REST
template: Calls
- to: payment_REST
template: Calls
- to: shipping_REST
template: Calls
- to: Kubernetes
template: Hosted on

Catalog:
name: Catalog Service
template: Microservice
interfaces:
catalog_REST:
name: REST
template: REST
relations:
- to: CatalogDB
template: DB connection
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: MongoDBDriver
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

CatalogDB:
name: CatalogDB
template: Database

Orders:
name: Order Service
template: Microservice
interfaces:
orders_REST:
name: REST
template: REST
relations:
- to: OrdersDB
template: DB connection
- to: shipping_REST
template: Calls
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: MySQLConnectorJ
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

OrdersDB:
name: OrdersDB
template: Database

Users:
name: User Service
template: Microservice
interfaces:
users_REST:
name: REST
template: REST
relations:
- to: UsersDB
template: DB connection
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: MongoDBDriver
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

UsersDB:
name: UsersDB
template: Database

Payment:
name: Payment Service
template: Microservice
interfaces:
payment_REST:
name: REST
template: REST
relations:
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

Shipping:
name: Shipping Service
template: Microservice
interfaces:
shipping_REST:
name: REST
template: REST
relations:
- to: orders_REST
template: Calls
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

Kubernetes:
name: Kubernetes
template: Infrastructure

SpringBoot:
name: Spring Boot
template: Library

MongoDBDriver:
name: MongoDB Java Driver
template: Library

MySQLConnectorJ:
name: MySQL Connector/J
template: Library

Jackson:
name: Jackson
template: Library

SLF4J:
name: SLF4J
template: Library

Logback:
name: Logback
template: Library
150 changes: 150 additions & 0 deletions diagrams/TeaStore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
WebUI:
name: WebUI Service
template: Microservice
interfaces:
webui_REST:
name: REST
template: REST
relations:
- to: recommender_REST
template: Calls
- to: auth_REST
template: Calls
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: Jersey
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

Auth:
name: Auth Service
template: Microservice
interfaces:
auth_REST:
name: REST
template: REST
relations:
- to: PersistenceDB
template: DB connection
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: JPA
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

Persistence:
name: Persistence Service
template: Microservice
interfaces:
persistence_REST:
name: REST
template: REST
relations:
- to: PersistenceDB
template: DB connection
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: JPA
template: Includes
- to: MySQLConnectorJ
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

Recommender:
name: Recommender Service
template: Microservice
interfaces:
recommender_REST:
name: REST
template: REST
relations:
- to: PersistenceDB
template: DB connection
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

Image:
name: Image Service
template: Microservice
interfaces:
image_REST:
name: REST
template: REST
relations:
- to: PersistenceDB
template: DB connection
- to: Kubernetes
template: Hosted on
- to: SpringBoot
template: Includes
- to: Jackson
template: Includes
- to: SLF4J
template: Includes
- to: Logback
template: Includes

PersistenceDB:
name: PersistenceDB
template: Database

Kubernetes:
name: Kubernetes
template: Infrastructure

SpringBoot:
name: Spring Boot
template: Library

JPA:
name: JPA
template: Library

MySQLConnectorJ:
name: MySQL Connector/J
template: Library

Jackson:
name: Jackson
template: Library

Jersey:
name: Jersey
template: Library

SLF4J:
name: SLF4J
template: Library

Logback:
name: Logback
template: Library
Loading

0 comments on commit b05c18c

Please sign in to comment.