@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
49 lines (32 loc) • 846 B
Markdown
# Running Opifex server/client on NodeJS
These instructions specifify how to run [Opifex](README.md) on NodeJS. To run
Opifex on Deno see the [instructions](../deno/README.md)
## Playing around
Make sure you have NodeJS with a version > 22.6.0 installed if you want to run
Typescript directly. Alternatively there is a version transpiled to Javascript
in the `/dist` folder which should work on any supported version of NodeJS.
### Server
```bash
npx -p @seriousme/opifex demoserver --help
```
### Client
```bash
npx @seriousme/opifex mqtt --help
```
## Local deployment
You can use:
```bash
npm install @seriousme/opifex
```
to install Opifex.
Or clone the repository, e.g. using:
```bash
git clone https://github.com/seriousme/opifex.git
```
and then use:
```bash
./bin/demoServer.ts --help
```
```bash
./bin/mqtt.ts --help
```