nodezestclient

A NodeJs Lib for Zest REST over ZeroMQ

Usage no npm install needed!

<script type="module">
  import nodezestclient from 'https://cdn.skypack.dev/nodezestclient';
</script>

README

nodeZestClient

Build Status

A NodeJs Lib for REST over ZeroMQ

Starting server to test against

$ docker run -p 5555:5555 -p 5556:5556 -d --name zest --rm jptmoore/zest /app/zest/server.exe --secret-key-file example-server-key --enable-logging
$ docker logs zest -f

Client for testing

In the ./client directory there is a simple client for testing this library with the zest server. Run node ./client.js to run with the default options.

Usage: client.js [options]

Options:
  --help, -h          Show help                                        [boolean]
  --0.0.1             Show version number                              [boolean]
  --server-key        Set the curve server key
                           [default: "vl6wu0A@XP?}Or/&BR#LSxn>A+}L)p44/W[wXL3<"]
  --path              Set the uri path for POST and GET     [default: "/kv/foo"]
  --token             Set set access token                         [default: ""]
  --payload           Set the uri path for POST and GET
                                          [default: "{"name":"dave", "age":32}"]
  --request-endpoint  set the request/reply endpoint
                                               [default: "tcp://127.0.0.1:5555"]
  --router-endpoint   et the router/dealer endpoint
                                               [default: "tcp://127.0.0.1:5556"]
  --method            set the mode of operation                 [default: "GET"]
  --format            text, json, binary to set the message content type
                                                               [default: "JSON"]
  --enable-logging    output debug information                  [default: false]

Running unit tests

npm test

Development of databox was supported by the following funding

EP/N028260/1, Databox: Privacy-Aware Infrastructure for Managing Personal Data

EP/N028260/2, Databox: Privacy-Aware Infrastructure for Managing Personal Data

EP/N014243/1, Future Everyday Interaction with the Autonomous Internet of Things

EP/M001636/1, Privacy-by-Design: Building Accountability into the Internet of Things (IoTDatabox)

EP/M02315X/1, From Human Data to Personal Experience