mit-dci / lit

Lightning Network node software
MIT License
551 stars 119 forks source link

Embbeded the webui #281

Closed gertjaap closed 6 years ago

gertjaap commented 6 years ago

This implements the embedding of the webui as discussed in issue #247

This pull requests removes the code for the webui from the LIT repo. The only file inside the lit repo containing webui stuff is webui/webui.go.

Prerequisite: go-bindata utility installed

The procedure to build this file, which is done from the separate litwebui repository:

npm run build
go-bindata --prefix build/ --pkg webui -o webui.go build/...

then move the generated webui.go file into the webui folder under the lit repository and build lit like normal.

When lit is started you can view the webui by navigating to [http://localhost:8001/] from a browser.