Skip to content

Instantly share code, notes, and snippets.

View simonbrowndotje's full-sized avatar

Simon Brown simonbrowndotje

View GitHub Profile
@simonbrowndotje
simonbrowndotje / structurizr-techtribesje.json
Created August 1, 2016 18:59
Structurizr workspace definition for techtribes.je
{"id":21,"name":"techtribes.je","description":"The software architecture model for the techtribes.je system","model":{"people":[{"tags":"Element,Person","id":"4","name":"Administration User","description":"A system administration user, signed in using a Twitter ID.","relationships":[{"tags":"Relationship,Synchronous","id":"21","sourceId":"4","destinationId":"14","description":"Add people, add tribes and manage tribe membership.","interactionStyle":"Synchronous"},{"tags":"Relationship,Synchronous","id":"7","sourceId":"4","destinationId":"1","description":"Add people, add tribes and manage tribe membership","interactionStyle":"Synchronous"},{"tags":"Relationship,Synchronous","id":"202","sourceId":"4","destinationId":"43","description":"uses","interactionStyle":"Synchronous"}],"location":"Unspecified"},{"tags":"Element,Person","id":"2","name":"Anonymous User","description":"Anybody on the web.","relationships":[{"tags":"Relationship,Synchronous","id":"198","sourceId":"2","destinationId":"39","description":"uses"
@simonbrowndotje
simonbrowndotje / gist:ee1c266dfd123a4d5660a8aa19da9e61
Last active September 16, 2017 02:44
System context diagram definition for Structurizr Express
Person = User | A user of my software system. | | 202,194
SoftwareSystem = Software System | My software system. | | 1627,1154
Relationship = User | Uses | | Software System | |
Diagram = System Context | Software System | A short description of this diagram. | A5_Landscape
ElementStyle = Element | 650 | 400 | | #ffffff | 36 |
ElementStyle = Software System | | | #d34407 | | |
ElementStyle = Person | | | #f86628 | | |
@simonbrowndotje
simonbrowndotje / AuctionSniper.java
Created March 19, 2016 18:48
A software architecture model for the Auction Sniper application from the GOOS book.
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.componentfinder.ComponentFinder;
import com.structurizr.componentfinder.JavadocComponentFinderStrategy;
import com.structurizr.componentfinder.StructurizrAnnotationsComponentFinderStrategy;
import com.structurizr.model.*;
import com.structurizr.view.*;
import java.io.File;
@simonbrowndotje
simonbrowndotje / ContosoUniversity.cs
Created March 10, 2016 13:18
A software architecture for the "Contuse University" sample ASP.NET MVC/Entity Framework app.
using Structurizr.Analysis;
using Structurizr.Client;
using Structurizr.Model;
using Structurizr.View;
using System.Linq;
namespace Structurizr
{
/// <summary>
@simonbrowndotje
simonbrowndotje / FinancialRiskSystem.cs
Last active March 9, 2016 15:56
An example software architecture model written in C#
using Structurizr.Client;
using Structurizr.IO.Json;
using Structurizr.Model;
using Structurizr.View;
using System.IO;
using System.Linq;
namespace Structurizr.Examples
{
@simonbrowndotje
simonbrowndotje / spring-petclinic.dot
Created November 8, 2015 16:28
A description of the Spring PetClinic application using DOT
# Class diagram Spring PetClinic - System Context
digraph G {
graph [labelloc=top,label="Spring PetClinic - System Context",fontname="Verdana",fontsize=12];
edge [fontname="Verdana",fontsize=9,labelfontname="Verdana",labelfontsize=9];
node [fontname="Verdana",fontsize=9,shape=record];
c0 [label="Spring PetClinic"]
c1 [label="Clinic Employee"]
// null
c1 -> c0 [label="Uses" , ];
}
@simonbrowndotje
simonbrowndotje / FurnitureCompany.java
Created June 19, 2015 11:52
Furniture example, with colour coding
package com.structurizr.example.core;
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.model.Model;
import com.structurizr.model.Person;
import com.structurizr.model.SoftwareSystem;
import com.structurizr.model.Tags;
import com.structurizr.view.*;
@simonbrowndotje
simonbrowndotje / FurnitureCompany.java
Last active August 29, 2015 14:23
C4 software architecture diagram for a furniture company.
package com.structurizr.example.core;
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.model.Model;
import com.structurizr.model.Person;
import com.structurizr.model.SoftwareSystem;
import com.structurizr.model.Tags;
import com.structurizr.view.ElementStyle;
import com.structurizr.view.Shape;
@simonbrowndotje
simonbrowndotje / SpringPetClinic.java
Created May 29, 2015 07:37
SpringPetClinic demo at I T.A.K.E. Unconference in Bucharest, Romania
package com.structurizr.example.spring.petclinic;
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.componentfinder.ComponentFinder;
import com.structurizr.componentfinder.JavadocComponentFinderStrategy;
import com.structurizr.componentfinder.SpringComponentFinderStrategy;
import com.structurizr.io.json.JsonWriter;
import com.structurizr.model.*;
import com.structurizr.view.*;
package com.structurizr.example.core;
import com.structurizr.Workspace;
import com.structurizr.api.StructurizrClient;
import com.structurizr.model.*;
import com.structurizr.view.*;
public class SelfDrivingCarSystem {
public static void main(String[] args) throws Exception {