Code Monkey home page Code Monkey logo

lightning-app's Introduction

Lightning Desktop App

This repo houses a cross-platform Lightning desktop app powered by lnd. The application is under active development and currently only operates on the Bitcoin testnet chain.

Developing Locally

First start by pulling down the git repo:

git clone https://github.com/lightninglabs/lightning-app.git

Then go inside the project folder and run the following commands (grab a coffee, this might take a while):

cd lightning-app
npm run setup

Development Mode

You can run the app in development mode in lieu of using the packaged app:

npm start

You can pass extra arguments to be passed to lnd daemon (note the extra --):

npm run start -- --peerport=10019 --rpcport=10017 --datadir=test_lnd --logdir=test_lnd

In development mode, the app will look for an lnd.conf in the default location for your platform. See lnd.conf details. A typical lnd.conf for running on simnet will look like the following:

debuglevel=debug
bitcoin.active=1
bitcoin.simnet=1
bitcoin.rpcuser=lnd
bitcoin.rpcpass=lnd

Running in development mode can allow you to run in full node mode instead of the default neutrino mode, and will also allow you to run in simnet node for testing.

Note that in order to run in simnet node, you will have also had to separately install and configure the roasbeef fork of btcd. Additional instructions for running simnet can be found here.

Also note that if you have installed and built lnd separately, if an instance is running when the app starts, the app will connect to the already running instance rather than attempt to start a new one.

If you want your lnd.conf to replicate the configuration used by the packaged app, you can use the following:

debuglevel=info
bitcoin.active=1
bitcoin.testnet=1
neutrino.active=1
neutrino.connect=btcd0.lightning.computer:18333
autopilot.active=1

Building the Packaged App

To build the packaged version of the app for your current platform, run:

npm run package-electron

The packaged app will then be available in the lightning-app/release directory. The packaged version of the app will run on Bitcoin testnet. To debug a packaged app, go to localhost:9997 in your browser.

Errors

If the window doesn't load after running npm start: try clicking on dev tools window and hitting cmd-r to refresh the window.

Logs

Logs are written to the following locations:

  • Linux: ~/.config/Lightning/log.log
  • OSX: ~/Library/Logs/Lightning/log.log
  • Windows: %USERPROFILE%\AppData\Roaming\Lightning\log.log

lightning-app's People

Contributors

casesandberg avatar bryanvu avatar roasbeef avatar brijananand avatar thejourneydude avatar yate avatar diofeher avatar bulenttastan avatar willpiers avatar

Watchers

Alessio Delmonti avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.