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.
- go-ellaism
- node
- npm
sudo npm install -g pm2
npm install
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 it using pm2:
pm2 start app.json