Skip to content

Instantly share code, notes, and snippets.

View simonbrowndotje's full-sized avatar

Simon Brown simonbrowndotje

View GitHub Profile
@simonbrowndotje
simonbrowndotje / bigbankplc.txt
Created June 22, 2018 15:34
Structurizr for Java - DotWriter example
# Class diagram Internet Banking System - System Context
digraph G {
graph [labelloc=top,label="Internet Banking System - System Context",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
c0 [label="Personal Banking Customer"]
c1 [label="Internet Banking System"]
c2 [label="Mainframe Banking System"]
c3 [label="E-mail System"]
// null
@simonbrowndotje
simonbrowndotje / structurizr-offline-documentation.html
Last active June 12, 2018 20:54
Structurizr - offline documentation example
<!DOCTYPE html>
<html lang="en"><head>
<style>
body {
font-size: 14px;
font-family: "Open Sans", sans-serif;
padding: 0;
margin: 0;
}
h1 {
@simonbrowndotje
simonbrowndotje / structurizr-offline-diagrams.html
Last active June 12, 2018 20:52
Structurizr - offline diagrams example
<!DOCTYPE html>
<html lang="en"><head>
<style>
body {
font-size: 14px;
font-family: "Open Sans", sans-serif;
padding: 0;
margin: 0;
}
#controls {
@simonbrowndotje
simonbrowndotje / system-context.json
Created June 4, 2018 11:34
An example Structurizr Express diagram
{
"type": "System Context",
"scope": "My Software System",
"description": "The system context diagram for my software system.",
"size": "A6_Portrait",
"elements": [
{
"type": "Person",
@simonbrowndotje
simonbrowndotje / structurizr-express-example.json
Created September 20, 2017 09:40
An example Structurizr Express definition
{
"type": "System Context",
"scope": "Software System",
"description": "A short description of this diagram.",
"size": "A5_Landscape",
"elements": [
{
"type": "Person",
@simonbrowndotje
simonbrowndotje / SelfDrivingCar.java
Created July 22, 2017 15:23
Self-driving car kata
package com.structurizr.example;
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.model.*;
import com.structurizr.view.ContainerView;
import com.structurizr.view.PaperSize;
import com.structurizr.view.SystemContextView;
import com.structurizr.view.ViewSet;
@simonbrowndotje
simonbrowndotje / spring-petclinic-plantuml.txt
Created July 4, 2017 20:06
Spring PetClinic - PlantUML
@startuml
title Spring PetClinic - System Context
caption The System Context diagram for the Spring PetClinic system.
actor "Clinic Employee" <<Person>> as 2
component "Spring PetClinic" <<Software System>> as 1
2 ..> 1 : Uses
@enduml
@startuml
title Spring PetClinic - Containers
@simonbrowndotje
simonbrowndotje / spring-petclinic-plantuml.txt
Created May 30, 2017 10:34
Spring PetClinic - PlantUML diagram definitions
@startuml
title Spring PetClinic - System Context
actor ClinicEmployee
[Spring PetClinic] <<Software System>> as SpringPetClinic
ClinicEmployee ..> SpringPetClinic : Uses
@enduml
@startuml
title Spring PetClinic - Containers
actor ClinicEmployee
@simonbrowndotje
simonbrowndotje / diagram.txt
Created December 15, 2016 12:03
Just a diagram...
SoftwareSystem = Project Lionheart | My software system. | |
Container = Project Lionheart | Web UI | Renders a user interface for the user in their web browser, handles user interactions. | JavaScript App | JavaScript App | 2515,156
Container = Project Lionheart | Display Business | Authentication and authorization, proxy for other backing services, verifies business logic for application use. | Web Service | Web Service | 2515,836
Container = Project Lionheart | Search Service | Core processing for query parsing, search, pagination, filtering. | Web Service | Web Service | 2515,1516
Container = Project Lionheart | Favorites Service | Normalizes tags, writes favorites to persistent storage. | Web Service | Web Service | 1710,1516
Container = Project Lionheart | Alerting Service | Scheduled to look for recent changes, sends email based on subscriptions stored in user metadata db. | System Process | System Process | 210,1516
Container = Project Lionheart | Crawler | Reads data from the contracts database, tra
@simonbrowndotje
simonbrowndotje / hexagon.txt
Last active September 16, 2017 02:34
An example Structurizr Express diagram definition that uses a hexagon.
Person = User | A user of my software system. | | 940,169
SoftwareSystem = Software System | My software system. | |
Container = Software System | Single Page Application | Does interesting things. | Angular 2 | | 915,1145
Container = Software System | Some Service | Some hipster microservice. | Go | Microservice | 940,1921
Container = Software System | Database | Stores interesting data. | MySQL | Database | 915,2818
Relationship = User | Uses | | Single Page Application | |
Relationship = Single Page Application | Uses | HTTPS | Some Service | |
Relationship = Some Service | Reads from and writes to | | Database | |