Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 685 Bytes

DEVELOPING.md

File metadata and controls

29 lines (22 loc) · 685 Bytes

Web UI

cd cmd/workwebui
go run main.go
open "http://localhost:5040/"

Assets

Web UI frontend is written in react. Webpack is used to transpile and bundle es7 and jsx to run on modern browsers. Finally bundled js is embedded in a go file.

All NPM commands can be found in package.json.

  • fetch dependency: npm install
  • test: npm test
  • generate test coverage: npm run cover
  • lint: npm run lint
  • bundle for production: npm run build
  • bundle for testing: npm run dev

To embed bundled js, do

go get -u github.com/go-bindata/go-bindata/...
cd webui/internal/assets
go generate