Draw.io

Development

Environment setup

Add devhost.jgraph.com entries to /etc/hosts:

127.0.0.1  devhost.jgraph.com
::1        devhost.jgraph.com

This address is hardcoded in /src/main/webapp/index.html.

Server

Start an HTTP server:

python -m http.server -d .

Forward port 80 to it:

socat TCP4-LISTEN:80,fork TCP4:localhost:8000

Start the editor in development mode by appending dev=1 to the query string (example).


Backlinks