Skip to content

Testing Locally

To try the app out you can create a local regtest lightning network using Polar and connect Clams to CoreLn nodes.

  1. Download Polar
  2. Create a test network with a least one CoreLN node running > v0.12.0 and start the network
  3. Open up the Docker dashboard and find the running container. Open up the docker compose file in your text editor:

Screen Shot 2023-01-31 at 7 24 30 am

  1. Find the name of the CoreLN node and add --experimental-websocket-port=7272 to the startup command and expose the port:

Screen Shot 2023-01-31 at 7 26 18 am

  1. Save the file and restart the Polar network
  2. Run the Clams app locally:
  3. git clone https://github.com/clams-tech/browser-app.git
  4. cd browser-app
  5. yarn
  6. yarn dev-http
  7. Enter the connection address using the public key of the node which is accessible from the "info" tab as well as localhost:7272.
  8. Click the "Advanced" dropdown -> select direct connection -> select ws:

    Screen Shot 2023-01-31 at 7 33 35 am

  9. Click "Connect" and you should successfully connect to the local node.

  10. To create an auth rune, click the "Actions" tab -> click "Launch which will launch a terminal window for the lightning CLI.
  11. Run lightning-cli commando-rune to create a rune and paste it in to the app.
  12. You have connected and authenticated your locally running node!