docker.grassecon.net/kitabu/ethstats-client:1.0.0
Go to file
cubedro 20813967e5 updated README.md 2015-03-19 15:32:07 +02:00
bin fixed build-go.sh 2015-03-03 19:55:37 +02:00
lib added INSTANCE_NAME env var 2015-03-19 15:30:49 +02: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 2015-03-19 15:32:07 +02:00
app.js app.js comment 2015-02-27 01:24:43 +02:00
package.json updated package.json version 2015-02-27 01:25:33 +02:00
processes-go.json updated README.md 2015-03-19 15:32:07 +02:00
processes.json updated README.md 2015-03-19 15:32:07 +02: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

  • cpp-ethereum
  • node
  • npm

Installation on Ubuntu

Fetch and run the build shell. This will install everything you need: latest cpp-ethereum - CLI (develop branch), node.js, npm, pm2.

curl https://raw.githubusercontent.com/cubedro/eth-net-intelligence-api/master/bin/build.sh | 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
		"ETH_IMPLEMENTATION" : "cpp", // eth implementation: "cpp" or "go"
		"INSTANCE_NAME"	     : "",
		"WS_SERVER"	: "", // 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 commands:

pm2 kill
cd ~/bin/www
git pull
sudo npm update
sudo npm install
cd ..
pm2 start processes.json