An open API service indexing awesome lists of open source software.

https://github.com/oresoftware/live-mutex-examples

Examples for live-mutex project: https://github.com/ORESoftware/live-mutex
https://github.com/oresoftware/live-mutex-examples

client-broker live-mutex lmx

Last synced: 7 months ago
JSON representation

Examples for live-mutex project: https://github.com/ORESoftware/live-mutex

Awesome Lists containing this project

README

          

## Live-Mutex / LMX examples in TypeScript

## installation:

```bash
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:

```bash
node cli/start-lmx-server.js
```

then run the plain/vanilla callback code with:

```bash
node dist/main.js
```

then run the promises-style code with:

```bash
node dist/promises.js
```

then run the async/await style code with:

```bash
node dist/async-await.js
```