dashboard

package
v0.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2015 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

README

etcd Dashboard

Developing

If you'd like to contribute to the etcd dashboard mod, follow these instructions. For contributing to the rest of etcd, see the contributing document in the root of the repository.

Install Dependencies

Requires nodejs.

Run all commands from within the /mod/dashboard directory.

run ./setup to install npm modules and bower front-end dependencies.

To run a non-compiled development version of the dashboard:

Continually compile html templates, sass/css, and run unit tests.

grunt dev

Export an environment varible to notify etcd of the dashboard source code location:

export ETCD_DASHBOARD_DIR=./mod/dashboard/app

Run local etc as usual (be sure to include the cors flag).

// from etcd root dir  
./bin/etcd -cors="*"  

Alternatively, build the optimized production-build version of the website and run etcd as above:

grunt  
export ETCD_DASHBOARD_DIR=./mod/dashboard/dist  

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpHandler

func HttpHandler() (handler http.Handler)

DashboardHttpHandler either uses the compiled in virtual filesystem for the dashboard assets or if ETCD_DASHBOARD_DIR is set uses that as the source of assets.

func IndexPage added in v0.4.0

func IndexPage(w http.ResponseWriter, req *http.Request)

Always returns the index.html page.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL