github.com/sym3tri/etcd@v0.2.1-0.20140422215517-a563d82f95d6/mod/dashboard/README.md (about)

     1  # etcd Dashboard
     2  
     3  ## Developing
     4  
     5  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.
     6  
     7  ### Install Dependencies
     8  
     9  Requires nodejs.  
    10  
    11  Run all commands from within the `/mod/dashboard` directory.  
    12  
    13  run `./setup` to install npm modules and bower front-end dependencies.
    14  
    15  To run a non-compiled development version of the dashboard:  
    16  
    17  Continually compile html templates, sass/css, and run unit tests.
    18  
    19  ```
    20  grunt dev
    21  ```
    22  
    23  Export an environment varible to notify etcd of the dashboard source code location:  
    24  
    25  ```
    26  export ETCD_DASHBOARD_DIR=./mod/dashboard/app
    27  ```
    28  
    29  Run local etc as usual (be sure to include the cors flag).  
    30  
    31  ```
    32  // from etcd root dir  
    33  ./bin/etcd -cors="*"  
    34  ```
    35  
    36  Alternatively, build the optimized production-build version of the website and run etcd as above:  
    37  
    38  ```
    39  grunt  
    40  export ETCD_DASHBOARD_DIR=./mod/dashboard/dist  
    41  ```