Searching for help - choreography chor-js

Hello, my name is German. I’ve no idea how to build or create an installation or program file. I’ve no idea programming something. I’m a just a user and nothing more. There is a chor-js thing out there. I’m searching now for month but I did not find something usable for me. I love the Camunda modeler and I think it can be modified to use it for choreography diagrams. (Sorry for my English.)
Is there somebody to help me? I’m working on OS X.

HI @germans

What exactly are you looking for help with - are you interested in running chor-js locally on your machine?


Yes, locally on my MacBook.

Is there a reason why you can’t just the current live link ?

If you ran it locally it would look exactly the same.

For documentation purposes, it would be very nice if that library could be used inside modeler :slight_smile:

A saved locally version of the website does not work if there is no network. When I’m out for interview this often happens. Safari hangs sometimes with this website.
An other solution is the Software cubetto. So there are ways - I would prefer the camunda modeler.

I’ll try and give you step-by-step instructions, but i don’t use a Mac so some of this might be different

Alright, well first you need to go and install Node.js:

Once that’s installed you’ll need to download the project, you can do that by following the github link and using the download function:

Next you need to unzip the project and then open a terminal window which is open at the directory where you have the downloaded project. Then in the terminal enter the commant
npm install
and wait for it to finish installing. When it’s done enter
npm run dev

and wait until it’s started up then go to http://localhost:9013/ and you should see the local version running.

Yeah - again. :grimacing: It is so much easier to start an app. I hate this and I understand nothing what is happening here. I got a lot warnings an errors in the terminal window.

npm WARN karma-browserify@7.0.0 requires a peer of watchify@>=3 <4 but none is installed. You must install peer dependencies yourself.

The log-file:
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘run’, ‘dev’ ]
2 info using npm@6.14.6
3 info using node@v12.18.4
4 verbose stack Error: missing script: dev
4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:155:19)
4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:63:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:116:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:436:5
4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:391:45)
4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:434:3)
4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:161:5)
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:281:12
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:123:16
4 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
5 verbose cwd /Users/german/Downloads/chor-js-master-2
6 verbose Darwin 19.6.0
7 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “dev”
8 verbose node v12.18.4
9 verbose npm v6.14.6
10 error missing script: dev
11 verbose exit [ 1, true ]

What exactly did you do before this occurred? what did you enter?

Hmm - good question. I followed the description.

It looks like I’m not alone:

Some weeks ago I tried this by my own. I have no idea what I did. At that time I was not in the download directory.

I know it doesn’t really help you germans ( :grinning: ) but I’m on a Mac and followed Niall’s instructions that he wrote above and it started and ran OK for me.

I do get errors at startup as well, but the app does run OK when connect to via the URL shown at the end of the log in a browser…

(base)  Downloads  cd chor-js-demo-master
(base)  chor-js-demo-master  ls
Dockerfile    app          package.json
(base)  chor-js-demo-master  npm install
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see
npm WARN deprecated urix@0.1.0: Please see
npm WARN deprecated resolve-url@0.2.1:

> fsevents@1.2.13 install /Users/stevedavis/Downloads/chor-js-demo-master/node_modules/fsevents
> node install.js

No receipt for '' found at '/'.

No receipt for '' found at '/'.

No receipt for '' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:344:16)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/stevedavis/Downloads/chor-js-demo-master/node_modules/fsevents
gyp ERR! node -v v12.12.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok

> deasync@0.1.20 install /Users/stevedavis/Downloads/chor-js-demo-master/node_modules/deasync
> node ./build.js

`darwin-x64-node-12` exists; testing
Binary is fine; exiting

> core-js@2.6.11 postinstall /Users/stevedavis/Downloads/chor-js-demo-master/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

Also, the author of core-js ( ) is looking for a good job -)

> parcel-bundler@1.12.4 postinstall /Users/stevedavis/Downloads/chor-js-demo-master/node_modules/parcel-bundler
> node -e "console.log('\u001b[35m\u001b[1mLove Parcel? You can now donate to our open collective:\u001b[22m\u001b[39m\n > \u001b[34m\u001b[0m')"

Love Parcel? You can now donate to our open collective:
npm WARN bpmn-js-properties-panel@0.33.2 requires a peer of bpmn-js@^3.x || ^4.x || ^5.x || ^6.x but none is installed. You must install peer dependencies yourself.

added 879 packages from 592 contributors and audited 880 packages in 18.31s
found 0 vulnerabilities

(base)  ✘  chor-js-demo-master  npm run dev

> chor-js-demo@1.1.0 dev /Users/stevedavis/Downloads/chor-js-demo-master
> parcel app/index.html -p 9013

Server running at http://localhost:9013
✨  Built in 7.22s.

Startet all new, new folder and now it is running. :smile: :man_dancing:

Thanks a lot.

1 Like