mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 17:01:56 +02:00
Add crude diagrams
This commit is contained in:
parent
97efde8adf
commit
7754923278
4 changed files with 63 additions and 0 deletions
41
docs/architecture/diagrams/request.dot
Normal file
41
docs/architecture/diagrams/request.dot
Normal file
|
@ -0,0 +1,41 @@
|
|||
digraph sequenceDiagram {
|
||||
# Install graphviz and run `fdp -Tpng request.dot -o request_diagram.png`
|
||||
subgraph cluster_1 {
|
||||
label="Request and Response";
|
||||
browserHead [ label="{Browser|user makes request}" pos="0.1,4.75!" shape="record" ];
|
||||
browserPoint0 [ pos="0.1,4!" shape="point" width="0" ]
|
||||
browserPoint5 [ pos="0.1,0.75!" shape="point" width="0" ]
|
||||
browserFoot [ label="Browser" pos="0,0!" shape="record" ];
|
||||
|
||||
viewHead [ label="{Django Views|business logic applied}" pos="2.5,4.75!" shape="record" ];
|
||||
viewPoint0 [ pos="2.5,4!" shape="point" width="0" ]
|
||||
viewPoint1 [ pos="2.5,3.75!" shape="point" width="0" ]
|
||||
viewPoint2 [ pos="2.5,3.5!" shape="point" width="0" ]
|
||||
viewPoint3 [ pos="2.5,1.25!" shape="point" width="0" ]
|
||||
viewPoint4 [ pos="2.5,1!" shape="point" width="0" ]
|
||||
viewPoint5 [ pos="2.5,0.75!" shape="point" width="0" ]
|
||||
viewFoot [ label="Django view" pos="2.5,0!" shape="record" ];
|
||||
|
||||
databaseHead [ label="{Django ORM|database consulted}" pos="5,4.75!" shape="record" ];
|
||||
databasePoint1 [ pos="5,3.75!" shape="point" width="0" ]
|
||||
databasePoint2 [ pos="5,3.5!" shape="point" width="0" ]
|
||||
databaseFoot [ label="Django ORM" pos="5,2.5!" shape="record" ];
|
||||
|
||||
templateHead [ label="{Django Templates|html response prepared}" pos="5,2.25!" shape="record" ];
|
||||
templatePoint3 [ pos="5,1.25!" shape="point" width="0" ]
|
||||
templatePoint4 [ pos="5,1!" shape="point" width="0" ]
|
||||
templateFoot [ label="Django Templates" pos="5,0!" shape="record" ];
|
||||
|
||||
browserHead -> browserPoint0 -> browserFoot [ dir="none" style="dashed" ]
|
||||
viewHead -> viewPoint0 -> viewFoot [ dir="none" style="dashed" ]
|
||||
databaseHead -> databasePoint1 -> databaseFoot [ dir="none" style="dashed" ]
|
||||
templateHead -> templatePoint3 -> templateFoot [ dir="none" style="dashed" ]
|
||||
|
||||
browserPoint0 -> viewPoint0 [ style="solid" ]
|
||||
viewPoint1 -> databasePoint1 [ style="solid" ]
|
||||
databasePoint2 -> viewPoint2 [ style="solid" ]
|
||||
viewPoint3 -> templatePoint3 [ style="solid" ]
|
||||
templatePoint4 -> viewPoint4 [ style="solid" ]
|
||||
viewPoint5 -> browserPoint5 [ style="solid" ]
|
||||
}
|
||||
}
|
BIN
docs/architecture/diagrams/request_diagram.png
Normal file
BIN
docs/architecture/diagrams/request_diagram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
22
docs/architecture/diagrams/system.dot
Normal file
22
docs/architecture/diagrams/system.dot
Normal file
|
@ -0,0 +1,22 @@
|
|||
digraph systemDiagram {
|
||||
# Install graphviz and run `fdp -Tpng system.dot -o system_diagram.png`
|
||||
subgraph cluster_0 {
|
||||
label="System Diagram";
|
||||
node [shape=record];
|
||||
registrant [label="Registrant"];
|
||||
subgraph cluster_cloud {
|
||||
label="cloud.gov";
|
||||
node [shape=record];
|
||||
postgres [label="Postgres Database"];
|
||||
subgraph cluster_django {
|
||||
label="Django MVC";
|
||||
node [shape=record];
|
||||
models [pos="0,1!" label="Database ORM"];
|
||||
views [pos="1,.5!" label="Views"];
|
||||
templates [pos="1,0!" label="Templates"];
|
||||
}
|
||||
}
|
||||
registrant -> views [dir=both];
|
||||
models -> postgres [dir=both];
|
||||
}
|
||||
}
|
BIN
docs/architecture/diagrams/system_diagram.png
Normal file
BIN
docs/architecture/diagrams/system_diagram.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Loading…
Add table
Add a link
Reference in a new issue