sensordb2 a8f8f1ae37 修改.gitignore配置 1 year ago
..
node_modules e64a8defe5 3.17 1 year ago
static e64a8defe5 3.17 1 year ago
test dc055bd12b 初始版本 2 years ago
.eslintrc dc055bd12b 初始版本 2 years ago
README.md dc055bd12b 初始版本 2 years ago
bindata.go a8f8f1ae37 修改.gitignore配置 1 year ago
buildWeb.sh e64a8defe5 3.17 1 year ago
gulp dc055bd12b 初始版本 2 years ago
gulpfile.js dc055bd12b 初始版本 2 years ago
http.go a8f8f1ae37 修改.gitignore配置 1 year ago
http_test.go dc055bd12b 初始版本 2 years ago
insertWebToGo.sh e64a8defe5 3.17 1 year ago
logger.go dc055bd12b 初始版本 2 years ago
notify.go dc055bd12b 初始版本 2 years ago
nsqadmin.go dc055bd12b 初始版本 2 years ago
nsqadmin_test.go dc055bd12b 初始版本 2 years ago
options.go dc055bd12b 初始版本 2 years ago
package-lock.json dc055bd12b 初始版本 2 years ago
package.json dc055bd12b 初始版本 2 years ago
static.go dc055bd12b 初始版本 2 years ago
static_legacy.go dc055bd12b 初始版本 2 years ago

README.md

nsqadmin

nsqadmin is a Web UI to view aggregated cluster stats in realtime and perform various administrative tasks.

Read the docs

Local Development (Go 1.16+)

Dependencies

  1. Install NodeJS 16.x (includes npm)
  2. Install go-bindata (for "legacy" go < 1.16)

Live Reload Workflow

  1. $ npm install
  2. $ ./gulp --series clean watch
  3. $ cd .. && make && ./build/nsqadmin --dev-static-dir=nsqadmin/static/build --lookupd-http-address=<...>
  4. make changes to static assets (repeat step 3 only if you make changes to any Go code)

Build

  1. $ ./gulp --series clean build
  2. $ go-bindata --pkg=nsqadmin --prefix=static/build/ static/build/... (for "legacy" go < 1.16)