Skip to content

ellaism/ellaism-net-intelligence-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ellaism Network Intelligence API

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

Prerequisite

  • go-ellaism
  • node
  • npm

Installation

sudo npm install -g pm2
npm install

Configuration

Configure the app modifying app.json.

"env":
	{
		"NODE_ENV"        : "production", // tell the client we're in production environment
		"RPC_HOST"        : "localhost", // Ellaism JSON-RPC host
		"RPC_PORT"        : "8545", // Ellaism JSON-RPC port
		"LISTENING_PORT"  : "30303", // Ellaism 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"       : "https://stats.ellaism.org/", // path to ella-netstats WebSockets api server
		"WS_SECRET"       : "ellaismstats", // 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:

pm2 start app.json

About

Ellaism Network Intelligence API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.8%
  • Shell 15.1%
  • Dockerfile 7.1%