flashmob abf5280212 fix statik build 8 years ago
..
js 407dcd324c limit helo to 16 characters logged, update README 8 years ago
README.md f94e4f4af3 Reimplement ranking analytics to save (lots of) memory 8 years ago
dashboard.go abf5280212 fix statik build 8 years ago
dashboard_test.go 2ff69cf370 - fix deadlock for when the http server for dashboard fails and Stop() is called 8 years ago
datastore.go 8fcb6c2be8 - add Stop function 8 years ago
http.go 8fcb6c2be8 - add Stop function 8 years ago
session.go c4fea8385e Send actions over websockets directly as redux actions 8 years ago

README.md

Dashboard

The dashboard package gathers data about Guerrilla while it is running and provides an analytics web dashboard. To activate the dashboard, add it to your configuration file as specified in the example configuration.

Backend

The backend is a Go package that collects and stores data from guerrillad, serves the dashboard to web clients, and updates clients with new analytics data over WebSockets. The backend uses statik to convert the build folder into a http-servable Go package. When deploying, the frontend should be built first, then the statik package should be created. An example of this process is in the .travis.yml.

Frontend

The front-end is written in React and uses WebSockets to accept data from the backend and Victory to render charts. The js directory is an NPM module that contains all frontend code. All commands below should be run within the js directory.

To install frontend dependencies: npm install

To build the frontend code: npm run build

To run the HMR development server (serves frontend on port 3000 rather than through dashboard package): npm start