Skip to content

XinFinOrg/XDCStats

 
 

Repository files navigation

XDC Network Stats

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

Prerequisite

  • node
  • npm
  • MongoDB(Only needed if to run Forensics)

Installation

Make sure you have node.js and npm installed.

Clone the repository and install the dependencies

git clone https://github.com/XinFinOrg/XDCStats
cd XDCStats
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

Run in server

  1. Copy paste .env_sample and rename to .env. Set the relevant environment variables.
  2. Start the docker to run the application: npm run start:docker

Run with Forensics

  1. In the .env, To enable Forensics, put ENABLE_FORENSICS=true
  2. Set up mongoDB
  1. Start the docker to run the application: npm run start:docker
  2. Run the Frontend UI. Please refer to the Forensics-UI

Run in local

npm run dev

see the interface at http://localhost:2000

About

XDC Network Stats like Average Transaction Rate, Active Nodes, Block time, Block Propagation etc

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.8%
  • CSS 7.5%
  • Other 0.7%