Using Docker:
- Clone the repository and
cd
to it - make sure you have yarn installed
- install project dependencies:
yarn install --pure-lockfile
- Start the "watch" task:
yarn watch
- Run a local Grafana instance with the development version of the plugin:
docker run -p 3000:3000 -d --name grafana-plugin-dev --volume $(pwd)/dist:/var/lib/grafana/plugins/clock-panel grafana/grafana
- Check the logs to see that Grafana has started up:
docker logs -f grafana-plugin-dev
- Open Grafana at http://localhost:3000/
- Log in with username "admin" and password "admin"
- Create new dashboard and add the plugin
To build a production build with minification: yarn build