GoShimmer Analysis Dashboard
Programmed using modern web technologies.
Dashboard in Dev Mode
- Make sure to set
analysis.dashboard.dev
to true, to enable GoShimmer to serve assets from the webpack-dev-server. - Install all needed npm modules via
yarn install
. - Run a webpack-dev-server instance by running
yarn start
within thefrontend
directory. - Using default port config, you should now be able to access the analysis dashboard under http://127.0.0.1:8000
The Analysis Dashboard is hot-reload enabled.
Pack Your Changes
We are using pkger to wrap all built frontend files into Go files.
Install
pkger
if not already done.Check that the correct webpack-cli (version v3.3.11) is installed:
2.1
yarn webpack-cli --version
2.2 If a newer version is installed use
yarn remove webpack-cli
andyarn add webpack-cli@3.3.11
Build Analysis Dashboard by running
yarn build
within thefrontend
directory.Navigate to the root of the repo.
Run
pkger
in the root of the repo.pkged.go
should have been modified.Done. Now you can build GoShimmer and your Analysis Dashboard changes will be included within the binary.
The above steps can also be done by running the scripts/pkger.sh
script from the root folder.