This is a NodeJS project, which offers Arrowhead compliant clients which are able to use the Event Handler
-
Make sure you have
nodeandgitinstalled. -
Check out the repo.
-
Run
npm installto download the project dependencies. -
Run
npm run start -- <command line arguments>to start the client.
| Argument Name | Syntax | Value | Mandatory |
|---|---|---|---|
| System Name | -n | String | yes |
| Port | -p | Number | yes |
| System Type | -t | provider or consumer | yes |
| Service Registry Address | --service_registry | String | no |
Example to start a provider:
npm run start -- -n svetlin_system -t provider -p 8080
Example to start a consumer:
npm run start -- -n svetlin_consumer -p 8081 -t consumer
Example with defining Service Registry address:
npm run start -- -n svetlin_system -t provider -p 8080 --service_registry 192.168.0.157