docker.grassecon.net/kitabu/ethstats-client:1.0.0
Go to file
cubedro 299629d969 updated Readme.md update 2015-04-09 15:18:16 +03:00
bin fixed ethtype var in update.sh 2015-04-06 22:08:00 +03:00
lib added coinbase until geth fix 2015-04-09 01:33:36 +03:00
.gitignore added custom config option 2015-02-12 04:55:09 +02:00
.travis.yml added travis.yml and badges 2015-02-25 23:28:34 +02:00
LICENSE init commit 2015-02-12 00:21:10 +02:00
README.md updated Readme.md update 2015-04-09 15:18:16 +03:00
app.js added sleep back 2015-04-06 21:22:59 +03:00
app.json updated processes.json, added app.json for non ec2 instances 2015-04-06 04:48:45 +03:00
package.json added debounce to 'latest' filter 2015-04-03 19:34:31 +03:00
processes-ec2.json updated processes.json, added app.json for non ec2 instances 2015-04-06 04:48:45 +03:00

README.md

Ethereum Network Intelligence API

Build Status dependency status

This is the backend service which runs along with the node for tracking the ethereum network status, fetches information through the JSON-RPC and connects through WebSockets to eth-netstats and feed information constantly.

Prerequisite

  • eth or geth
  • node
  • npm

Installation on Ubuntu

Fetch and run the build shell. This will install everything you need: latest ethereum - CLI from develop branch (you can choose between eth or geth), node.js, npm & pm2.

bash <(curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh)

Configuration

Configure the app modifying processes.json. Note that you have to modify the backup processes.json file located in ./bin/processes.json (to allow you to set your env vars without being rewritten when updating).

"env":
	{
		"NODE_ENV"        : "production", // tell the client we're in production environment
		"RPC_HOST"        : "localhost", // eth JSON-RPC host
		"RPC_PORT"        : "8080", // eth JSON-RPC port
		"INSTANCE_NAME"   : "", // whatever you wish to name your node
		"WS_SERVER"       : "wss://eth-netstats.herokuapp.com", // path to eth-netstats WebSockets api server
		"WS_SECRET"       : "", // WebSockets api server secret used for login
	}

Run

Run it using pm2:

cd ~/bin
pm2 start processes.json

Updating

To update the API client use the following command:

~/bin/www/bin/update.sh

It will stop the current netstats client processes, automatically detect your ethereum implementation and version, update it to the latest develop build, update netstats client and reload the processes.