|
1 | 1 | <p align="center"> |
2 | | - <a href="https://umbrel.com"> |
| 2 | + <a href="https://github.com/ElementsProject/cln-application"> |
3 | 3 | <img src="./.github/images/Dashboard.png" alt="Core Lightning Dashboard"> |
4 | 4 | </a> |
5 | | - <h1 align="center">Core Lightning Node for Umbrel</h1> |
6 | | - <p align="center"> |
7 | | - Run a Core Lightning node on your Umbrel personal server. An official app by Blockstream. Powered by Core Lightning. |
| 5 | + <h1 align="center">Core Lightning Application</h1> |
| 6 | + <h3 align="center"> |
| 7 | + Run a Core Lightning application for your node. An official app by Blockstream. Powered by Core Lightning. |
8 | 8 | <br /> |
9 | | - <a href="https://umbrel.com"><strong>umbrel.com »</strong></a> |
10 | 9 | <br /> |
11 | | - <br /> |
12 | | - <a href="https://twitter.com/umbrel"> |
13 | | - <img src="https://img.shields.io/twitter/follow/umbrel?style=social" /> |
14 | | - </a> |
15 | | - <a href="https://t.me/getumbrel"> |
16 | | - <img src="https://img.shields.io/badge/community-chat-%235351FB"> |
17 | | - </a> |
18 | | - <a href="https://reddit.com/r/getumbrel"> |
19 | | - <img src="https://img.shields.io/reddit/subreddit-subscribers/getumbrel?style=social"> |
20 | | - </a> |
21 | | - <a href="https://community.getumbrel.com"> |
22 | | - <img src="https://img.shields.io/badge/community-forum-%235351FB"> |
| 10 | + <a href="https://twitter.com/Blockstream"> |
| 11 | + <img src="https://img.shields.io/twitter/follow/blockstream?style=social" /> |
23 | 12 | </a> |
24 | | - </p> |
| 13 | + </h3> |
25 | 14 | </p> |
26 | 15 |
|
27 | | -## Getting started |
| 16 | +--- |
28 | 17 |
|
29 | | -This app can be installed in one click via the Umbrel App Store. |
| 18 | +# Prerequisites |
| 19 | +* Functioning and synced Bitcoin & Core lightning node. |
| 20 | +* Node.js, which can be downloaded [here](https://nodejs.org/en/download/) |
| 21 | +* Recommended Browsers: Chrome, Firefox, MS Edge |
30 | 22 |
|
31 | 23 | --- |
32 | 24 |
|
33 | | -## Contributing |
| 25 | +# Getting started |
| 26 | + |
| 27 | +- ## Standalone |
| 28 | + - ### Get latest release |
| 29 | + ``` |
| 30 | + wget https://github.com/ElementsProject/cln-application/archive/refs/tags/v0.0.1.tar.gz |
| 31 | + tar -xzf v0.0.1.tar.gz |
| 32 | + ``` |
| 33 | +
|
| 34 | + - ### Dependency Installation |
| 35 | + ``` |
| 36 | + cd cln-application-0.0.1 |
| 37 | + npm install --omit=dev |
| 38 | + ``` |
| 39 | +
|
| 40 | + - ### Environment Variables |
| 41 | + This application accepts & depeneds upon these variables to be passed through environment: |
| 42 | +
|
| 43 | + ``` |
| 44 | + - APP_CORE_LIGHTNING_IP: IP address of the core lightning container (required) |
| 45 | + - APP_CORE_LIGHTNING_PORT: Port on which this application should be served (required) |
| 46 | + - APP_CORE_LIGHTNING_DAEMON_IP: Core lightning deamon bind address (cln config bind-addr; required) |
| 47 | + - APP_CORE_LIGHTNING_WEBSOCKET_PORT: Core lightning's websocket port (cln config experimental-websocket-port; required) |
| 48 | + - APP_CONFIG_DIR: Path for application's configuration file (config.json; required) |
| 49 | + - COMMANDO_CONFIG: Full Path including file name for commando auth with PUBKEY & RUNE (required) |
| 50 | + - APP_CORE_LIGHTNING_REST_PORT: c-lightning-REST server port (optional; for connect wallet screen) |
| 51 | + - APP_CORE_LIGHTNING_REST_CERT_DIR: Path for c-lightning-REST certificates (optional; for connect wallet screen) |
| 52 | + - APP_CORE_LIGHTNING_BITCOIN_NETWORK: Bitcoin network type (optional; required for entrypoint.sh; valid values: bitcoin/signet/testnet/regtest) |
| 53 | + - APP_CORE_LIGHTNING_DAEMON_GRPC_PORT: Core lightning's GRPC port (optional; future proofing for connect wallet screen) |
| 54 | + - APP_CORE_LIGHTNING_REST_HIDDEN_SERVICE: REST hidden service url (optional; for connect wallet screen) |
| 55 | + - LOCAL_HOST: Docker setup variable (optional; for connect wallet screen) |
| 56 | + - APP_MODE: Mode for logging and other settings (optional; valid values: production/development/testing) |
| 57 | + - CORE_LIGHTNING_PATH: Path for core lightning (optional; required for entrypoint.sh) |
| 58 | + ``` |
| 59 | +
|
| 60 | + Set these variables either via terminal OR by env.sh script OR by explicity loading varibles from .env files. |
| 61 | +
|
| 62 | + - ### Application Configuration |
| 63 | + This is the config.json file which is required by application's frontend. If the file named `config.json` is missing at `APP_CONFIG_DIR` location, one like below will be auto created: |
| 64 | +
|
| 65 | + ``` |
| 66 | + { |
| 67 | + "unit": "SATS", |
| 68 | + "fiatUnit": "USD", |
| 69 | + "appMode": "DARK", |
| 70 | + "isLoading": false, |
| 71 | + "error": null |
| 72 | + } |
| 73 | + ``` |
| 74 | +
|
| 75 | + - ### Commando Authentication |
| 76 | + - This application utilizes [lnmessage](https://github.com/aaronbarnardsound/lnmessage) and [commando](https://docs.corelightning.org/reference/lightning-commando) for connecting with core lightning node. The connection is trustless and end-to-end encrypted. Commando manages authentication and authorization through runes, which can grant either full or fine-grained permissions. |
| 77 | + - The backend server reads `LIGHTNING_PUBKEY` & `LIGHTNING_RUNE` from the `COMMANDO_CONFIG` file for this communication. |
| 78 | + - Values can either be set manually or script `entrypoint.sh` can be used to call `getinfo` and `commando-rune` methods and save values in `COMMANDO_CONFIG`. |
| 79 | + - Sample commando config should look like: |
34 | 80 |
|
35 | | -We welcome and appreciate new contributions! |
| 81 | + ``` |
| 82 | + LIGHTNING_PUBKEY="03d2d3b2...0f8303bfe" |
| 83 | + LIGHTNING_RUNE="iv...4j" |
| 84 | + ``` |
36 | 85 |
|
37 | | -If you're a developer looking to help but not sure where to begin, look for [these issues](https://github.com/ElementsProject/umbrel-core-lightning/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) that have specifically been marked as being friendly to new contributors. |
| 86 | + - ### Start The Application |
| 87 | + Run `build` script to build the aplication's backend and frontend |
38 | 88 |
|
39 | | -If you're looking for a bigger challenge, before opening a pull request please [create an issue](https://github.com/ElementsProject/umbrel-core-lightning/issues/new/choose) or [join umbrel community chat](https://t.me/getumbrel) to get feedback, discuss the best way to tackle the challenge, and to ensure that there's no duplication of work. |
| 89 | + ``` |
| 90 | + npm run build |
| 91 | + ``` |
| 92 | +
|
| 93 | + Run `start` script for starting your application's server at port `APP_CORE_LIGHTNING_PORT` |
| 94 | +
|
| 95 | + ``` |
| 96 | + npm run start |
| 97 | + ``` |
| 98 | +
|
| 99 | +- ## Umbrel Store |
| 100 | + ### This application is also available on Umbrel App Store with one click install. |
| 101 | +
|
| 102 | +--- |
| 103 | +
|
| 104 | +# Contributing |
| 105 | +
|
| 106 | +- We welcome and appreciate new contributions! |
| 107 | +
|
| 108 | +- If you're a developer looking to help but not sure where to begin, look for [these issues](https://github.com/ElementsProject/cln-application/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) that have specifically been marked as being friendly to new contributors. |
| 109 | +
|
| 110 | +- If you're looking for a bigger challenge, before opening a pull request please [create an issue](https://github.com/ElementsProject/cln-application/issues/new/choose) to get feedback, discuss the best way to tackle the challenge, and to ensure that there's no duplication of work. |
| 111 | +
|
| 112 | +- Click [here](./docs/Contributing.md) for instructions on how to run it in development mode. |
| 113 | +
|
| 114 | +--- |
40 | 115 |
|
41 | | -Click [here](./docs/Contributing.md) for instructions on how to run it in development mode. |
| 116 | +# Acknowledgements |
42 | 117 |
|
43 | | -## Acknowledgements |
| 118 | +- This app is inpired by the work done by [Umbrel lightning app](https://github.com/getumbrel/umbrel-lightning). |
44 | 119 |
|
45 | | -This app is inpired by the work done by [Umbrel lightning app](https://github.com/getumbrel/umbrel-lightning). |
46 | | -The backend api connects with core lightning via [lnmessage](https://github.com/aaronbarnardsound/lnmessage). |
| 120 | +- The backend api connects with core lightning via [lnmessage](https://github.com/aaronbarnardsound/lnmessage). |
0 commit comments