ethstats-server/README.md
2018-11-07 22:47:00 +09:00

63 lines
1.6 KiB
Markdown

# TEO Network Stats
============
## WS_SECRET value is "1111" anynode can do join this stats!!!
[![Build Status][travis-image]][travis-url] [![dependency status][dep-image]][dep-url]
This is a visual interface for tracking teo 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 [teo-net-intelligence-api](https://github.com/tao-foundation/teo-net-intelligence-api).
![Screenshot](https://raw.githubusercontent.com/cubedro/eth-netstats/master/src/images/screenshot.jpg?v=0.0.6 "Screenshot")
## Prerequisite
* teo-net-intelligence-api
* node
* npm
## Installation
Make sure you have node.js and npm installed.
Clone the repository and install the dependencies
```bash
git clone https://github.com/tao-foundation/teo-netstats
cd eth-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
```bash
grunt
```
To build the lite version run
```bash
grunt lite
```
If you want to build both versions run
```bash
npm run dist
```
## Run
```bash
npm start
```
see the interface at http://localhost:3000
[travis-image]: https://travis-ci.org/cubedro/eth-netstats.svg
[travis-url]: https://travis-ci.org/cubedro/eth-netstats
[dep-image]: https://david-dm.org/cubedro/eth-netstats.svg
[dep-url]: https://david-dm.org/cubedro/eth-netstats