Skip to content

bitkub-chain/bkc-stats-server

 
 

Repository files navigation

BitkubChain Network Stats

This is a visual interface for tracking mainnet and testnet network status. It uses WebSockets to receive stats from running nodes and output them through an angular interface. It is the front-end implementation for ethstats-client.

Screenshot

Usage

docker run -e WS_SECRET=asdf -p 3000:3000 bitkubchainorg/bkc-stats-server:mainnet

Development

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/bitkub-chain/bkcstats-server
cd bkcstats-server
npm install
sudo npm install -g grunt-cli

Build

In order to build the static files you have to run grunt tasks which will generate dist directories containing the js and css files, fonts and images.

grunt default

To build the static files for a network other than Ethereum copy and change src/js/defaultConfig.js and run the following command.

grunt default --configPath="src/js/someOtherConfig.js"

Run

Start a node process and pass the websocket secret to it.

WS_SECRET="asdf" npm start

Find the interface at http://localhost:3000

:-)

About

Bitkub Chain network status dashboard

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.9%
  • CSS 4.9%
  • Pug 3.1%
  • Other 0.1%