Skip to content

Commit

Permalink
GitBook: [lightninglabs#213] No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Weese authored and gitbook-bot committed May 5, 2022
1 parent 4744488 commit 6137630
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions lapps/guides/polar-lapps/run-the-app-without-lnd.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,33 @@ Open your browser to [http://localhost:3000](http://localhost:3000) if it doesn

If all went well with your development environment setup, you should see the initial screen below:

![](<../../../.gitbook/assets/preLND01 (1) (1) (1).png>)
![](<../../../.gitbook/assets/preLND01 (1) (1) (1) (1).png>)

Click on the **Create a Post** button to go to the Create screen.

![](<../../../.gitbook/assets/preLND02 (1).png>)
![](<../../../.gitbook/assets/preLND02 (1) (1).png>)

Fill in some info for the _Username_, _Title_, and _Content_ fields, then click on the **Submit** button. You will be redirected back to the screen displaying the list of posts.

![](../../../.gitbook/assets/preLND03.png)
![](<../../../.gitbook/assets/preLND03 (1).png>)

Add a couple more posts, just to have some data to play with.

![](../../../.gitbook/assets/preLND04.png)
![](<../../../.gitbook/assets/preLND04 (1).png>)

Click on the **Upvote** button on a post to see the votes counter increment and the posts reorder based on which has the highest votes.

![](../../../.gitbook/assets/preLND05.png)
![](<../../../.gitbook/assets/preLND05 (1).png>)

The app makes use of WebSockets to update the UI in real-time when posts are created and upvoted on the backend. To see this in action, open a second browser window side-by-side with the first window. Create a new post on the left to see it automatically appear on the right. Upvote a post on the right to see it increment and reorder on the left automatically.

![](../../../.gitbook/assets/preLND06.png)
![](<../../../.gitbook/assets/preLND06 (1).png>)

## Architecture

This application is split into two parts, the backend API server and the frontend browser-based UI.

![](../../../.gitbook/assets/appArchitecture.png)
![](<../../../.gitbook/assets/appArchitecture (1).png>)

### Backend API

Expand Down
17 changes: 16 additions & 1 deletion lightning-network-tools/lightning-terminal/get-lit.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,25 @@ Then, pull from source and install the latest release. [You can find all release

git checkout \<latest release>

1. Now we will install it:
2\. Now we will install it:

`make install`

The binaries should be found in your Go path, most commonly \~/go/bin/ You can navigate and check your Go path with cd $GOPATH

### Install in BTCPay Server

BTCPay contains an installation script for `litd`, which makes it easy to include litd into your BTCPay Server. You may also refer to [the official guide](https://docs.btcpayserver.org/Docker/lightning-terminal/#lightning-terminal-lit).

1. Set a password for your litd instance:

`export LIT_PASSWD="YOUR PASSWORD HERE"`

2\. Add the fragment to your configuration and run the installation script:

`BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;opt-add-lightning-terminal"`\
`. btcpay-setup.sh -i`

You can now find `litd` under Server Settings > Services

[Continue here: Connect to Terminal](run-litd.md)

0 comments on commit 6137630

Please sign in to comment.