Native companion app for the lightning browser extension to connct to a LND node.
Under development!
I am currently not sure what's the best development setup for this.
The native messaging host application requires
a path
to an executable to be specified. The browser communicates via stdin/stdout with the native companion.
Currenty I am using prebuilt electron binaries to run it in development
Download the prebuild binaries and clone this repository in a folder named app
in the Electron's resources
folder.
OSX:
electron/Electron.app/Contents/Resources/app/
├── package.json
├── index.js
└── ...
Windows and Linux:
electron/resources/app
├── package.json
├── index.js
└── ...
Then use the absolute path to Electron.app on macOS, electron on Linux, or electron.exe on Windows in your host JSON file (joule.json).
Currently I've only used Chrome for development.
Copy or link the joule.json
to /etc/opt/chrome/native-messaging-hosts/joule.json
and configure the path
as described above.
$ npm start
This should serve the frontend app on port 3000.
Do not open the app in the browser. (it opens by default, just close it... it does not work in the browser)
Now install the lightning-browser-extension
https://medium.com/folkdevelopers/the-ultimate-guide-to-electron-with-react-8df8d73f4c97