Skip to content

ethercore/eth-net-intelligence-api

Repository files navigation

EtherCore Network Intelligence API

Build Status dependency status

This is the backend service which runs along with ethercore and tracks the network status, fetches information through JSON-RPC and connects through WebSockets to eth-netstats to feed information.

Prerequisite

  • geth or parity
  • nodejs
  • npm

Configuration

Configure the app modifying app.json.example.

"env":
	{
		"NODE_ENV"        : "production", // tell the client we're in production environment
		"RPC_HOST"        : "localhost", // eth JSON-RPC host
		"RPC_PORT"        : "8545", // eth JSON-RPC port
		"LISTENING_PORT"  : "30303", // eth listening port (only used for display)
		"INSTANCE_NAME"   : "", // whatever you wish to name your node
		"CONTACT_DETAILS" : "", // add your contact details here if you wish (email/skype)
		"WS_SERVER"       : "wss://stats.ethercore.org", // path to eth-netstats WebSockets api server
		"WS_SECRET"       : "EtherCore", // WebSockets api server secret used for login
		"VERBOSITY"       : 2 // Set the verbosity (0 = silent, 1 = error, warn, 2 = error, warn, info, success, 3 = all logs)
	}

Run

Run it using pm2:

cp app.json.example app.json
pm2 start app.json

Startup

To enable at system startup use the following command:

pm2 save
pm2 startup

Releases

No releases published

Packages

No packages published