flashmob 7e86a4e19f - split hook to hook.go 8 years ago
..
js 5c46f53640 Fix bug where JS console prints error on INIT message from dashboard backend 8 years ago
README.md f94e4f4af3 Reimplement ranking analytics to save (lots of) memory 8 years ago
dashboard.go 7e86a4e19f - split hook to hook.go 8 years ago
dashboard_test.go 7e86a4e19f - split hook to hook.go 8 years ago
datastore.go 7e86a4e19f - split hook to hook.go 8 years ago
hook.go 7e86a4e19f - split hook to hook.go 8 years ago
http.go 7e86a4e19f - split hook to hook.go 8 years ago
session.go 7e86a4e19f - split hook to hook.go 8 years ago
simulation.log f1521b0119 add a simulation test for the dashboard 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