An admin dashboard for gorse recommender system derived from shards-dashboard-vue.
- Install Node 12 and
yarn
. - Install dependencies by running
yarn
. - Run
yarn serve
to start the local development server.
- The build might fail if you are using newer versions of Node.
- Node Version Manager is recommended for managing multiple Node versions on a single machine.
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)