Skip to content

server-side rendering of network and architecture diagrams

Notifications You must be signed in to change notification settings

edurguti/dld4e-headless

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decent looking diagrams for engineers - headless

Send dld4e.com yaml files to this service to obtain server side rendered network diagrams.

Groups

See dld4e.com

Usage

Run with

    docker run -p 3030:3030 bonndan/dld4e-headless:latest 

Test SVG generation ((send accept header) with

    cat examples/groups.yaml | curl -v -X POST -H "Content-Type: text/yaml" -H "Accept: image/svg+xml" --data-binary @- http://localhost:3030 > /tmp/groups.svg

Test PNG generation (default) with

    cat examples/groups.yaml | curl -v -X POST -H "Content-Type: text/yaml"  --data-binary @- http://localhost:3030 > /tmp/groups.png

Development

This app requires imagemagick.

    sudo apt-get install imagemagick
    npm install

Run with

    node --inspect src/index.js

or for debugging in docker

    docker run -p 3030:3030 -p 9229:9229 bonndan/dld4e-headless:latest

License

This project is licensed under the MIT License. MIT License.

About

server-side rendering of network and architecture diagrams

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.2%
  • Dockerfile 0.8%