Coder Social home page Coder Social logo

lemonade-stand-lightning's Introduction

Lemonade Stand - Bitcoin w/Lightning

Thanks to ElementsProject and the Bitcoin Team for outstanding original work -

Quick Setup

Sign up to DigitalOcean

Create your Docker droplet, selecting 'NYC 1' and adding an additional 250GB volume for the Bitcoin blockchain data.

Next, create your SSH keys to connect with:

ssh-keygen -t rsa -C "[email protected]" -f $HOME/.ssh/lemonade1 && ssh-keygen -y -f $HOME/.ssh/lemonade > $HOME/.ssh/lemonade.pub

(On Windows, you will need Git Bash installed for this to work.)

Type the output, your SSH public key, into Digital Ocean where prompted.

Connect to your Droplet (server) using their instructions.

You are now ready for the setup scripts:

git clone https://github.com/ch4ot1c/lemonade-stand-lightning && cd lemonade-stand-lightning

  1. First, make sure you are SSH'd into your DigitalOcean Droplet. The prompt should say root@myDigitalOceanDropletName:~#.

  2. ./setup_volume_digitalocean.sh. The remote machine will reboot; reconnect.

  3. ./setup.sh myDesiredSecretApiTokenDoNotUseThis.

Finally, to start both Lightning-Charge and Nanopos:

./run.sh

You will see two text strings, which represent your Lightning-Charge and Nanopos docker instances, respectively. You can run docker logs textString to see more.

The blockchain will need to fully sync before Lightning can accept transactions, which can take a while.

You can access the Point-of-Sale on any web-enabled device:

http://myDigitalOceanIPAddress:9116

You can also view the Lightning-Charge invoice server:

http://api-token:mySecretApiToken@myDigitalOceanIPAddress:9112/info

To stop both (all) Docker instances:

docker stop $(docker ps -aq)

❤️

Tips:

BTC - 3J7j9ja4QZRY1rwUZiLkaikfh3q7F1d1Gu

lemonade-stand-lightning's People

Contributors

ch4ot1c avatar

Watchers

 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.