An admin dashboard for gorse recommender system derived from shards-dashboard-vue.
- Install dependencies by running
yarn
. - Run
yarn serve
to start the local development server.
Install the package.
go get -u github.com/gorse-io/dashboard@statik
Import and serve.
import (
"github.com/rakyll/statik/fs"
_ "github.com/gorse-io/dashboard"
)
// ...
statikFS, err := fs.New()
if err != nil {
log.Fatal(err)
}
// Serve the contents over HTTP.
http.Handle("/", http.FileServer(statikFS))
http.ListenAndServe(":8080", nil)