Contributing
Installation
Backend
Follow these instructions for the Go backend.
Frontend
Optional. If you wish to modify the frontend components, you’ll need to follow these additional instructions:
Clone the uchiwa-web repository:
git clone git@github.com:sensu/uchiwa-web.git && cd uchiwa-webInstall third-party libraries:
npm install # Standard user
npm install --unsafe-perm # Root userCreate a global link for uchiwa-web:
bower linkMove to your uchiwa repository directory:
cd $GOPATH/src/github.com/sensu/uchiwaUninstall the uchiwa-web bower component if previously installed:
bower uninstall uchiwa-webPoint the bower component uchiwa-web to the previously created link
bower link uchiwa-webDevelopment
Backend
Run the program:
go run uchiwa.goN.B.: You’ll need to relaunch this command if you modify the source code to apply changes.
Frontend
Generate CSS files from Sass templates:
grunt sassTesting
Backend
Run the unit tests:
go test -v ./...Frontend
Run linting and unit tests:
grunt