Yicheng Qin 32d23fdb11 chore: gofmt go files 10 سال پیش
..
app af6d5efb83 chore(dashboard/fonts): remove unused font files 10 سال پیش
resources 32d23fdb11 chore: gofmt go files 10 سال پیش
.bowerrc 151b9c6ed2 feat(dashboard): project setup 10 سال پیش
.gitignore 151b9c6ed2 feat(dashboard): project setup 10 سال پیش
Gruntfile.js c08bcb6f5b fix(dashboard/build): update gruntfile for release build 10 سال پیش
LICENSE 8ee0845631 chore(dashboard): move to the mod directory 11 سال پیش
README.md 151b9c6ed2 feat(dashboard): project setup 10 سال پیش
bower.json 151b9c6ed2 feat(dashboard): project setup 10 سال پیش
build 102d8e543d bump(mod/dashboard): rebuild the dashboard for the latest fixes 11 سال پیش
dashboard.go 35ddb6627e chore(dashboard): move dashboard server & fix routing. 10 سال پیش
karma.conf.js 151b9c6ed2 feat(dashboard): project setup 10 سال پیش
package.json 151b9c6ed2 feat(dashboard): project setup 10 سال پیش
setup 151b9c6ed2 feat(dashboard): project setup 10 سال پیش

README.md

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