Home

Awesome

elkjsmicroservice

<!--- [![start with why](https://img.shields.io/badge/start%20with-why%3F-brightgreen.svg?style=flat)](http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action) --->

GitHub release GitHub tag GitHub license GitHub issues GitHub issues-closed contributions welcome GitHub contributors Github All Releases Website elbosso.github.io

Overview

This project is aimed at providing a microservice for laying out arbitrarily complex graphs. It builds on the project elk.js for the actual layout algorithms implementation.

This project adds the plumbing for turning it into a service - actually it turns it into a docker container deployable anywhere docker containers are welcome.

The provided Dockerfile builds an image for the service. If your fancy takes you to using it with docker-compose - there is already a ready made example docker-compose.yml here that has some commented lines prepared for integrating eith any traefik-instance you might already have set up.

After starting the container and provided you know hostname and port of said container, one can check out the functionality of it by sending the provided example.json - for example using curl by issuing the following command:

curl -H "Content-Type: application/json" --data-binary '@example.json' http://<hostname>:<port>

Many thanks also go out to nodejs and expressjs.