docker.grassecon.net/kitabu/ethstats-client:1.0.0
Go to file
2015-05-27 12:12:26 +03:00
bin added node pid kill to update.sh 2015-05-19 00:39:05 +03:00
lib refactoring 2015-05-27 10:15:22 +03:00
.gitignore added custom config option 2015-02-12 04:55:09 +02:00
.travis.yml updated travis env vars 2015-05-19 04:10:52 +03:00
app.js added colors to output 2015-05-05 06:59:48 +03:00
app.json refer people to forum post about WS_SECRET (too many times asked in IRC etc) 2015-05-14 00:59:11 -07:00
Dockerfile Add Dockerfile 2015-04-21 16:37:50 +02:00
LICENSE init commit 2015-02-12 00:21:10 +02:00
package.json version 0.0.9 2015-05-26 23:07:45 +03:00
processes-ec2.json refer people to forum post about WS_SECRET (too many times asked in IRC etc) 2015-05-14 00:59:11 -07:00
README.md Merge pull request #137 from ethers/ethers-patch-1 2015-05-16 01:01:11 +03:00

Ethereum Network Intelligence API

Build Status dependency status

This is the backend service which runs along with ethereum and tracks the network status, fetches information through JSON-RPC and connects through WebSockets to eth-netstats to feed information. For full install instructions please read the wiki.

Prerequisite

  • eth, geth or pyethapp
  • node
  • npm

Installation on an Ubuntu EC2 Instance

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)

Installation as docker container (optional)

There is a Dockerfile in the root directory of the repository. Please read through the header of said file for instructions on how to build/run/setup. Configuration instructions below still apply.

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"        : "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.ethdev.com", // path to eth-netstats WebSockets api server
		"WS_SECRET"       : "see http://forum.ethereum.org/discussion/2112/how-to-add-yourself-to-the-stats-dashboard-its-not-automatic", // 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.