Skip to content

ORESoftware/live-mutex-examples

Repository files navigation

Live-Mutex / LMX examples in TypeScript

installation:

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

Running the examples

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