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
- Host: GitHub
- URL: https://github.com/oresoftware/live-mutex-examples
- Owner: ORESoftware
- License: mit
- Created: 2019-09-01T00:31:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T04:16:55.000Z (almost 6 years ago)
- Last Synced: 2023-03-02T00:26:04.334Z (almost 3 years ago)
- Topics: client-broker, live-mutex, lmx
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
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
```