git clone https://github.com/ORESoftware/live-mutex-examples.git
cd live-mutex-examples
npm i
npm run tsc
For quick reference see: run.sh
Start server with:
node cli/start-lmx-server.js
then run the plain/vanilla callback code with:
node dist/main.js
then run the promises-style code with:
node dist/promises.js
then run the async/await style code with:
node dist/async-await.js