Skip to content
Snippets Groups Projects
user avatar
jkrvivian authored
* fix: Rename SPA to dashboard and disable portcheck of peer_replica

* feat: Add data & unknown type of payload to dashboard

* refactor: Implement paylaod interface that allows different json structs

* feat: Implement Drng paylaod

* refactor: Use Listgroup for layout consistency

* doc: Add description

* feat: Implement Value payload handler

* feat: Add Value payload layout

* refactor: Refactor payload layouts

* refactor: Remove debug print out

* fix: Remove redundant assignment

* refactor: Fix :dog:

* refactor: Fix :dog:
0a6095d0
History

GoShimmer Dashboard

Programmed using modern web technologies.

Dashboard in dev mode

  1. Make sure to set dashboard.dev to true, to enable GoShimmer to serve assets from the webpack-dev-server.
  2. Install all needed npm modules via yarn install.
  3. Run a webpack-dev-server instance by running yarn start within the frontend directory.
  4. Using default port config, you should now be able to access the dashboard under http://127.0.0.1:8081

The Dashboard is hot-reload enabled.

Pack your changes

We are using packr2 to wrap all built frontend files into Go files.

  1. Install packr2 if not already done.
  2. Build Dashboard by running yarn build within the frontend directory.
  3. Change to the plugins/spa directory.
  4. Run packr2.
  5. plugins/spa/packrd should have been modified.
  6. Done. Now you can build goShimmer and your Dashboard changes will be included within the binary.