stepan-mitkin / drakonhub

The source code for DrakonHub
212 stars 51 forks source link

DrakonHub

Here, you can find the source code and releases for the web-based DrakonHub diagram editor.

To get the desktop version of DrakonHub, go to https://github.com/stepan-mitkin/drakonhub_desktop

DrakonHub server runs on tarantool 2 and requires Linux.

DrakonHub is written in DRAKON-JavaScript and DRAKON-Lua.

Use DRAKON Editor to open .drn files. Most of .js and .lua files are generated from the respective .drn files.

Tcl 8.6 and Java are needed to build DrakonHub.

License

PUBLIC DOMAIN

System requirements

How to install DrakonHub

Install Tarantool

Install Tarantool 2. Follow instructions here:

https://www.tarantool.io/en/download/os-installation/ubuntu/

Install tarantool modules

sudo apt-get install luarocks

sudo luarocks install luautf8

Security note

Close ports 3301 and 8090 from external access in the production environment. If this is not done, the database will be available to the outside world, and DrakonHub server will be available without HTTPS.

Download DrakonHub

Configuration

Running in a virtual machine

How to configure mailgun

By default, emails are saved in the tmp folder.

To start sending emails via Mailgun, do the following:

How to start DrakonHub

To run the server in the interactive mode, run

tarantool dbgcfg.lua

Do not forget to edit the dbgcfg.lua configuration file.

How to stop DrakonHub

sudo killall tarantool

How to connect to DrakonHub from our browser

http://localhost:8090/

In a production environment, put DrakonHub behind a proper HTTP server, for example nginx.

Admin interface

http://localhost:8090/static/adm.html

To access this URL, logon as admin first.

Default admin credentials. User: admin password: drakon

CHANGE THE ADMIN PASSWORD AFTER INSTALLATION!!!