gladiusio / gladius-edge-daemon

Gladius Edge Node Daemon, handles actual networking of the project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gladius Edge Node Daemon

The edge node daemon to be installed alongside the control daemon.

Install

Run npm install gladius-edge-daemon -g or clone this repo and run npm install

Run

Run node index.js in the project directory

Test the RPC server

$ HDR='Content-type: application/json'

$ MSG='{"jsonrpc": "2.0", "method": "start", "id": 1}'
$ curl -H $HDR -d $MSG http://localhost:5000/rpc
{"jsonrpc":"2.0","result":"Started server","id":1}

$ MSG='{"jsonrpc": "2.0", "method": "stop", "id": 1}'
$ curl -H $HDR -d $MSG http://localhost:5000/rpc
{"jsonrpc":"2.0","result":"Stopped server","id":1}

$ MSG='{"jsonrpc": "2.0", "method": "status", "id": 1}'
$ curl -H $HDR -d $MSG http://localhost:5000/rpc
{"jsonrpc":"2.0","result":{"running": false},"id":1}

Set up content delivery

bundle.json is included with the package.

About

Gladius Edge Node Daemon, handles actual networking of the project.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%