This is a repository demonstrating how to write a steadybit extension.
If you want to read more than the boring code find the blog posts at https://steadybit.com/blog
Make sure that you're in the root of the project directory, fetch the dependencies with go mod tidy
, then run the application using go run ./cmd/web
:
$ go mod tidy
$ go run ./cmd/web
Then visit http://localhost:4444 in your browser.
The Makefile
in the project root contains commands to easily run common admin tasks:
$ make tidy |
Format all code using go fmt and tidy the go.mod file. |
$ make audit |
Run go vet , staticheck , execute all tests and verify required modules. |
$ make build |
Build a binary for the cmd/web application and store it in the bin folder. |
$ make run |
Build and then run a binary for the cmd/web application. |
The module path is currently set to foobar
. If you want to change this please find and replace all instances of foobar
in the codebase with your own module path.