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.jsthen run the plain/vanilla callback code with:
node dist/main.jsthen run the promises-style code with:
node dist/promises.jsthen run the async/await style code with:
node dist/async-await.js