2022-05-01 19:35:20 +02:00
![](../screenshots/RTL-ECL-Dashboard.png)
2020-07-07 19:57:15 +02:00
## RTL Eclair setup
* [Introduction ](#intro )
* [Pre-requisite ](#prereq )
* [Architecture ](#arch )
* [Installation ](#install )
* [Prep for execution ](#prep )
* [Start the server and access the app ](#start )
### <a name="intro"></a>Introduction
RTL is now enabled to manage an Eclair node.
Follow the below steps to install and setup RTL to run on Eclair.
### <a name="prereq"></a>Pre-requisites:
2020-07-08 01:25:24 +02:00
1. Functioning Eclair node v0.4.1 or above. Follow install instructions on their [github ](https://github.com/ACINQ/eclair ) page.
2. Bitcoin core v0.19.1 or above (this is an Eclair dependency).
3. NodeJS - Can be downloaded [here ](https://nodejs.org/en/download )
2020-07-07 19:57:15 +02:00
### <a name="install"></a>Installation:
2020-07-10 03:30:24 +02:00
Eclair is integrated with RTL v0.8.0 and above.
2020-07-08 01:31:39 +02:00
To download a specific RTL version follow the instructions on the [release page ](https://github.com/Ride-The-Lightning/RTL/releases )
2020-07-07 19:57:15 +02:00
2020-07-08 01:31:39 +02:00
To download from master (*not recommended*) follow the below instructions:
#### First time setup
```
$ git clone https://github.com/Ride-The-Lightning/RTL.git
$ cd RTL
2024-06-10 21:40:37 +02:00
$ npm install --omit=dev --legacy-peer-deps
2020-07-08 01:31:39 +02:00
```
2020-07-07 19:57:15 +02:00
#### Or: Update existing build
```
$ cd RTL
$ git reset --hard HEAD
$ git clean -f -d
$ git pull
2024-06-10 21:40:37 +02:00
$ npm install --omit=dev --legacy-peer-deps
2020-07-07 19:57:15 +02:00
```
2022-11-29 05:52:18 +01:00
#### Error on npm install
If there is an error with `upstream dependency conflict` message then replace `npm install --omit=dev` with `npm install --omit=dev --legacy-peer-deps` .
2020-07-07 19:57:15 +02:00
### <a name="prep"></a>Prep for Execution
RTL requires its own config file `RTL-Config.json` , to start the server and provide user authentication on the app.
2022-05-04 16:15:15 +02:00
* Rename the file `Sample-RTL-Config.json` to `RTL-Config.json` located at`./RTL`..
2020-07-07 19:57:15 +02:00
* Locate the complete path of the readable `eclair.conf` for your node.
* Modify the RTL conf file per the example file below
Ensure that the follow values are correct per your config:
* `lnImplementation` - This should be `ECL` , indicating that RTL is connecting to an Eclair node.
* `lnServerUrl` - complete url with ip address and port of the eclair server.
* `multiPass` - Specify the password (in plain text) to access RTL. This password will be hashed and not stored as plain text.
2020-07-17 02:44:55 +02:00
* `configPath` (Optinal) - Full path of the folder containing `eclair.conf` including the file name. Can be used for the basic password authentication through `eclair.api.password` .
* `lnApiPassword` (Mandatory if configPath is missing) - The same value from eclair.conf's eclair.api.password should be provided directly here. It will be used for Eclair API authentication.
2020-07-07 19:57:15 +02:00
```
{
2022-05-24 02:57:22 +02:00
"multiPass": < password required for accessing RTL > ,
2020-07-07 19:57:15 +02:00
"port": "3000",
2022-05-24 02:57:22 +02:00
"defaultNodeIndex": 1,
2023-02-18 02:33:33 +01:00
"dbDirectoryPath": "< Complete path of the folder where rtl ' s database file should be saved > ",
2020-07-07 19:57:15 +02:00
"SSO": {
"rtlSSO": 0,
"rtlCookiePath": "",
"logoutRedirectLink": ""
},
"nodes": [
{
"index": 1,
"lnNode": "Eclair Testnet # 1",
"lnImplementation": "ECL",
2024-06-10 21:40:37 +02:00
"authentication": {
2020-07-17 02:44:55 +02:00
"configPath": "< Optional - Config file path , including . conf file > ",
2020-07-17 02:45:51 +02:00
"lnApiPassword": "< Mandatory if the configPath is missing - Password used for API authentication > ",
2020-07-07 19:57:15 +02:00
},
2024-06-10 21:40:37 +02:00
"settings": {
2020-07-07 19:57:15 +02:00
"userPersona": "OPERATOR",
"themeMode": "DAY",
"themeColor": "PURPLE",
"bitcoindConfigPath": "",
2021-08-28 23:03:18 +02:00
"logLevel": "INFO",
2020-07-07 19:57:15 +02:00
"fiatConversion": false,
2022-11-16 04:17:23 +01:00
"unannouncedChannels": false,
2024-06-10 21:40:37 +02:00
"lnServerUrl": "http://< eclair api server ip address > :port",
"blockExplorerUrl": "< Default: https: / / mempool . space > "
2020-07-07 19:57:15 +02:00
}
}
2022-05-24 02:57:22 +02:00
]
2020-07-07 19:57:15 +02:00
}
```
### <a name="start"></a>Start the server and access the app
Run the following command:
`$ node rtl`
If the server started successfully, you should get the below output on the console:
2022-05-04 18:47:21 +02:00
`$ Server is up and running, please open the UI at http://localhost:3000 or your proxy configured url.`
2020-07-07 19:57:15 +02:00
Open your browser at the following address: http://localhost:3000 to access the RTL app.
### Detailed config and instructions
For detailed config and access options and other information, view the main readme page.