Skip to content

gochain/netstats

Repository files navigation

GoStats - GoChain Network Stats Dashboard

This is a visual interface for tracking GoChain network status. It uses WebSockets to receive stats from running nodes and output them through an angular interface.

Screenshot

Prequisites

  • Docker

Run

Just run this:

export WS_SECRET=YOURSECRET
WS_SECRET=YOOOOO make run

Then browse to: http://localhost:3000

Running outside Docker

Prerequisite

  • node
  • npm

Installation

Make sure you have node.js and npm installed.

Clone the repository and install the dependencies

git clone https://github.com/gochain-io/netstats
cd netstats
npm install
sudo npm install -g grunt-cli

Build the resources

NetStats features two versions: the full version and the lite version. In order to build the static files you have to run grunt tasks which will generate dist or dist-lite directories containing the js and css files, fonts and images.

To build the full version run

grunt

To build the lite version run

grunt lite

If you want to build both versions run

grunt all

##Run

npm start

see the interface at http://localhost:3000