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 dev
or opening the app itself - In Polar, run an environment with at least one
lnd
node and has at least two nodes (the default environment, which has one of each node type, is good) - Run
cp .env.example .env
in this directory - Under the
Connect
tab for thelnd
node in your Polar environment, copy the following values to.env
:- Copy the
Admin Macaroon
path toALICE_LND_MACAROON_PATH
- Copy the
GRPC Host
path toALICE_LND_HOST
- Copy the
TLS Cert
path toALICE_TLS_CERT_PATH
- Copy the
- Install this app's dependencies by running
yarn
- Run the app by running
yarn start