Integrate - Ride The Lightning UI
See original GitHub issueHi @PierreRochard, as discussed opening an issue to integrate RTL Web UI with node launcher.
Prerequisite
Install RTL:
git clone https://github.com/ShahanaFarooqui/RTL.git
cd RTL
npm install
Start the RTL Webserver:
node rtl --lndir <full path for the macaroon files>
Example: node rtl --lndir C:\Users\pierre\AppData\Local\Lnd\data\chain\bitcoin\testnet
Details instructions below: https://github.com/ShahanaFarooqui/RTL
Sample Python code to launch RTL
import os import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtWebEngineWidgets import *
class WebPage(QWebEngineView): def init(self, parent=None): QWebEngineView.init(self) self.current_url = ‘’ self.load(QUrl(“http://localhost:3000”)) self.loadFinished.connect(self._on_load_finished)
def _on_load_finished(self):
print("Url Loaded")
class MainWindow(QMainWindow): def init(self, parent=None): super(MainWindow, self).init(parent) self.add_web_widet() self.show()
def add_web_widet(self):
self.web_widget = WebPage(self)
self.setWindowTitle('RTL')
self.setCentralWidget(self.web_widget)
app = QApplication(sys.argv) main_window = MainWindow() main_window.showMaximized() sys.exit(app.exec_())
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6
Top GitHub Comments
let’s make this a priority, the node launcher need some good LND GUI Zap is good and all but RTL ❤️
Awesome, thank you! I think the challenge will be bundling node.js with the app. Ideally the python webserver would serve up the built website