This is an example app that shows how Polar can be used in your development workflow while working on Lightning Network applications.
This example is a simple app, designed for LND nodes, that allows the user to:
- Open a channel
- List peers
- List pending channels
- List open channels
- Start the Polar app using
yarn devor opening the app itself - In Polar, run an environment with at least one
lndnode and has at least two nodes (the default environment, which has one of each node type, is good) - Run
cp .env.example .envin this directory - Under the
Connecttab for thelndnode in your Polar environment, copy the following values to.env:- Copy the
Admin Macaroonpath toALICE_LND_MACAROON_PATH - Copy the
GRPC Hostpath toALICE_LND_HOST - Copy the
TLS Certpath toALICE_TLS_CERT_PATH
- Copy the
- Install this app's dependencies by running
yarn - Run the app by running
yarn start