Warning
System architecture diagrams represent the system architecture but they are not the system architecture.
You can prototype diagrams in docs/diagrams/prototype via the hediet.vscode-drawio extension (example).
However, it's not a good idea to version control images because you can't conveniently visualize their diffs and therefore can't track changes well.
Therefore, you must use the diagrams as code approach and eventually switch to one of the following tools:
PlantUML supports all the necessary types of diagrams. Therefore, we recommend using it to visualize the architecture.
If you want to preview the PlantUML diagrams in VS Code, follow these steps:
-
Install the
jebbs.plantumlVS Codeextension. -
Install
Docker. -
Run in the terminal
docker run --name plantuml-server -d -p 48080:8080 plantuml/plantuml-server:jettyto start aPlantUMLserver. -
Open the
PlantUMLserver in the browser athttp://localhost:48080to make sure it works. -
In
VS Code, in thedocs/diagrams/src/directory, open aPlantUMLfile with the.pumlextension. -
Click the
Preview Current Diagramicon.The extension should connect to the
PlantUMLserver and render the diagram.The
48080port is already set in.vscode/settings.json. -
Write the
PlantUMLcode indocs/diagrams/src/and render the diagrams toSVGindocs/diagrams/out/using thejebbs.plantumlextension. These directories are already set in.vscode/settings.json. -
To render diagrams to SVG, open the
Command Palette, writePlantUML: Export Workspace Diagrams, and choosesvg. -
Embed the rendered images into your
Markdownfile.
You can write Mermaid code in Markdown files in code blocks with the mermaid language tag (see docs).
Other tools that implement the diagrams as code approach include: