This repository is made up of:
- NodeJS script that connects to lnd's gRPC methods.
- A simple VueJS webapp, located in the web-ui directory.
Lightning Labs' lnd is currently under heavy development, therefore breaking changes happen almost weekly. This app works as of lightningnetwork/lnd commit: b4e280eb152cbd5f2e9d7e116976316fd95be1c7
lnd
needs to be installed and running. Guide: https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md- Clone this repository
- server.js is configured to look for tls.cert and admin.macaroon in the default lnd directory for Linux. If necessary, change LND_HOMEDIR to your lnd directory.
- You may need to update rpc.proto as per https://github.com/lightningnetwork/lnd/blob/master/docs/grpc/javascript.md#setup-and-installation
# install dependencies
npm install
# start server.js
npm start
Navigate to the web-ui directory, then
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# server.js will serve the dist folder at localhost:3000
npm run build