README.md (nsq-1.2.0) | : | README.md (nsq-1.2.1) | ||
---|---|---|---|---|
## nsqadmin | ## nsqadmin | |||
`nsqadmin` is a Web UI to view aggregated cluster stats in realtime and perform various | `nsqadmin` is a Web UI to view aggregated cluster stats in realtime and perform various | |||
administrative tasks. | administrative tasks. | |||
Read the [docs](http://nsq.io/components/nsqadmin.html) | Read the [docs](https://nsq.io/components/nsqadmin.html) | |||
## Working Locally | ## Local Development (Go 1.16+) | |||
### Dependencies | ||||
1. Install NodeJS 16.x (includes `npm`) | ||||
### Live Reload Workflow | ||||
0. install nodejs 8.x (includes npm) | ||||
1. `$ npm install` | 1. `$ npm install` | |||
2. `$ ./gulp --series clean watch` or `$ ./gulp --series clean build` | 2. `$ ./gulp --series clean watch` | |||
3. `$ go-bindata --debug --pkg=nsqadmin --prefix=static/build static/build/...` | 3. `$ go build --tags debug` (from `apps/nsqadmin` directory) | |||
4. `$ go build && ./nsqadmin` | 4. make changes to static assets (repeat step 3 only if you make changes to any | |||
5. make changes (repeat step 5 if you make changes to any Go code) | Go code) | |||
6. `$ go-bindata --pkg=nsqadmin --prefix=static/build static/build/...` | ||||
7. commit other changes and `bindata.go` | ### Build | |||
1. `$ ./gulp --series clean build` | ||||
End of changes. 4 change blocks. | ||||
3 lines changed or deleted | 8 lines changed or added |