updated readme
This commit is contained in:
parent
033f5e1b8d
commit
cd2c624300
11
README.md
11
README.md
@ -2,12 +2,15 @@
|
||||
|
||||
## Usage
|
||||
|
||||
You need to host a local http server for providing the definition files. Please create a dedicated directory @ `localhost` for that purpose.
|
||||
### Prerequisites
|
||||
|
||||
First, you need to generate the visualisation data:
|
||||
|
||||
```
|
||||
cabal run workflow-visualiser -- <source.yaml> <target.json>
|
||||
cabal run workflow-visualiser -- --all <path-to-source-yaml-directory> <directory-of-http-server>
|
||||
```
|
||||
|
||||
Copy the contents of `target.json` and paste them as the value of the variable `workflow` into the first line of [`editor.js`](./editor.js#L1).
|
||||
|
||||
Open `editor.html` in order to display the graph.
|
||||
Afterwards you can run your server and listen on port `8080`.
|
||||
### Open Editor
|
||||
Open `editor.html` in your browser and select the desired workflow via the file menu.
|
||||
Loading…
Reference in New Issue
Block a user