@ -1,44 +1,44 @@
Ethereum Network Stats with POA support
Ethereum Network Stats with POA and POW support
============
===============================================
[![Build Status][travis-image]][travis-url] [![dependency status][dep-image]][dep-url]
[![Build Status][travis-image]][travis-url] [![dependency status][dep-image]][dep-url]
This is a visual interface for tracking proof-of-work and proof-of-authority 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 [netstats-client ](https://github.com/goerli/netstats-client ).
This is a visual interface for tracking proof-of-work ("mainnet") and proof-of-authority ("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 [netstats-client ](https://github.com/goerli/netstats-client ).
## Proof-of-Authority
## Proof-of-Authority
![Screenshot ](src/images/screenshot-v0.1.0.png "Screenshot" )
![Screenshot ](src/images/screenshot-v0.1.0.png "Screenshot" )
### Prerequisite
#### Prerequisite
* node
* node
* npm
* npm
### Installation
#### Installation
Make sure you have node.js and npm installed.
Make sure you have node.js and npm installed.
Clone the repository and install the dependencies
Clone the repository and install the dependencies:
```bash
```bash
git clone https://github.com/goerli/n etstats-server
git clone https://github.com/goerli/eth stats-server
cd n etstats-server
cd eth stats-server
npm install
npm install
sudo npm install -g grunt-cli
sudo npm install -g grunt-cli
```
```
### Build
#### 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.
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.
```bash
```bash
grunt poa
grunt poa
```
```
### Run
#### Run
Start a node process and pass the websocket secret to it.
```bash
```bash
WS_SECRET="asdf" npm start
WS_SECRET="asdf" npm start
```
```
see the interface at http://localhost:3000
Find the interface at http://localhost:3000
## Proof-of-Work
## Proof-of-Work (Legacy)
![Screenshot ](src/images/screenshot-v0.0.6.png "Screenshot" )
![Screenshot ](src/images/screenshot-v0.0.6.png "Screenshot" )
@ -49,9 +49,9 @@ grunt pow
WS_SECRET="asdf" npm start
WS_SECRET="asdf" npm start
```
```
see the interface at http://localhost:3000
:-)
[travis-image]: https://travis-ci.org/goerli/n etstats-server.svg
[travis-image]: https://travis-ci.org/goerli/eth stats-server.svg
[travis-url]: https://travis-ci.org/goerli/n etstats-server
[travis-url]: https://travis-ci.org/goerli/eth stats-server
[dep-image]: https://david-dm.org/goerli/n etstats-server.svg
[dep-image]: https://david-dm.org/goerli/eth stats-server.svg
[dep-url]: https://david-dm.org/goerli/n etstats-server
[dep-url]: https://david-dm.org/goerli/eth stats-server