Skip to content

Simple Express endpoint for converting bpmn models to svgs

Notifications You must be signed in to change notification settings

PierreSchwang/bpmn2svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bpmn2svg

⚡ blazing fast xml to svg bpmn converter ⚡

Installation

Recommended: Using Docker: https://hub.docker.com/r/pierreschwang/bpmn2svg

  1. Use one of the listed docker images from https://hub.docker.com/r/pierreschwang/bpmn2svg
  2. Expose the http port (default: 8080)

Example: docker run -d -p 8080:8080 pierreschwang/bpmn2svg:development (Uses the default port and exposes it)

Alternative: Clone this repository, run npm install and npm build ; node dist/index.js

Environment Variables

  • HTTP_PORT » The port on which the internal http server should bind. Default: 8080
  • HTTP_HOST » The host on which the internal http server should bind. Default: 0.0.0.0
  • LOG_LEVEL » Defines, on which level the logger should print to the console. Default: info

Endpoints

  • GET /:base64 » Pass the base64 encoded XML BPMN model via get request.
  • POST /
    • Body must contain raw XML of BPMN model. or
    • Pass file via form-data field.

Examples / Screenshots:

Using POST-Request and bpmn content as request body:

Using GET-Request with base64 encoded xml in the path: