Mini Loca Pub Sub
The Mini Loca Pub Sub (mlps) is used as publish/subscribe service in a local network.
Installation
Node Package
You can install the Mini Loca Pub Sub using npm (the Node Package Manager). Note that you will need to install Node.js and npm. Installing Node.js should install npm as well.
To download and install the Mini Loca Pub Sub run the following command:
npm install -g @nsoft/local-pub-sub
This will provide you with the globally accessible mlps
command.
Command
The command mlps
will start service.
Using as a Module
The Mini Loca Pub Sub can also be used programmatically as a standard Node module.
That translates to the following in Node:
const mlps = require('@nsoft/local-pub-sub');
mlps.start();
Documentation
End user documentation can be found here.
Develop
# Clone your Github repository:
git clone git@github.com:nsftx/local-pub-sub.git
# Go to the Mini Local Pub Sub directory:
cd local-pub-sub
# Install JavaScript dependencies:
npm i install
# Run app and watch for changes:
npm run dev