Visual constructor for C4 diagrams with Structurizr DSL export.
2.1K
A visual constructor for C4 diagrams with Structurizr DSL export.

# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
You can build and run the application using Docker. A multi-stage build is used with Node.js for building and Nginx for serving.
# Build the image
docker build -t c4-constructor .
# Run the container
docker run -d -p 8080:80 c4-constructor
The version of the application is stored in the version file. You can use it to tag your image:
Bash:
docker build -t c4-constructor:$(cat version) .
PowerShell:
docker build -t c4-constructor:$(Get-Content version) .
The application generates valid Structurizr DSL which can be used with:
workspace "My System" "Description of my system" {
model {
user = person "User" "A user of the system"
mySystem = softwareSystem "My System" "Main software system" {
webApp = container "Web Application" "Frontend" "React"
api = container "API" "Backend service" "Node.js"
database = container "Database" "Data storage" "PostgreSQL"
}
user -> webApp "Uses"
webApp -> api "Makes API calls" "HTTPS"
api -> database "Reads/Writes" "SQL"
}
views {
systemContext mySystem "SystemContext" {
include *
autoLayout
}
container mySystem "Containers" {
include *
autoLayout
}
styles {
element "Person" {
shape Person
background #08427b
color #ffffff
}
element "Software System" {
background #1168bd
color #ffffff
}
}
}
}
MIT
Content type
Image
Digest
sha256:5fe9256a8…
Size
24.9 MB
Last updated
8 months ago
docker pull pkochubey/c4-constructor