Skip to content

Web dashboard for gorse recommender system engine

License

Notifications You must be signed in to change notification settings

gorse-io/dashboard

Repository files navigation

Dashboard for gorse recommender system

build

An admin dashboard for gorse recommender system derived from shards-dashboard-vue.

Quick Start

  1. Install Node 12 and yarn.
  2. Install dependencies by running yarn.
  3. 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.

Usage

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)