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.
- node
- npm
- MongoDB(Only needed if to run Forensics)
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-cliNetStats 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- Copy paste
.env_sampleand rename to.env. Set the relevant environment variables. - Start the docker to run the application:
npm run start:docker
- In the
.env, To enable Forensics, putENABLE_FORENSICS=true - Set up mongoDB
- Download and set up mongoDB: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition
- Set monggoDB url to
MONGODBURLin .env , default tolocalhost:27017
- Start the docker to run the application:
npm run start:docker - Run the Frontend UI. Please refer to the Forensics-UI
npm run devsee the interface at http://localhost:2000