/l402-demo

Primary LanguageTypeScript

l402-demo

This repo contains a demo usage of Lightning Lab's Aperture L402 reverse proxy. It is made up of three parts:

Prerequisites

  • Docker Compose
  • Node.js
  • A receiving LND node capable of Lightning Node Connect
  • A sending LND node capable of Lightning Node Connect

Running the demo

First, create a .env file in the repo root containing the hostname of service's node:

LNDHOST=example.t.voltageapp.io:10009

Then, get the TLS certificate and admin macaroon for the service's node. Place the TLS cert at ./aperture/lnd/tls.cert. Place the macaroon inside ./aperture/lnd/data/chain/bitcoin/testnet.

To start the web service and reverse proxy, run

docker compose up --build

To start the web app, run

cd client
yarn install
yarn start

Point your browser to localhost:3000 and enter the LNC pairing phrase of the client's node.