Code Monkey home page Code Monkey logo

Block and Jerry's

LAUNCHED: Block and Jerry's launch was successful! We sold few ice cream and had a great time! Check out our feature on Coindesk: https://www.coindesk.com/bitcoin-lightning-risky-maybe-ice-cream-will-tempt/

Coindesk

SHUT DOWN FOR NOW: Unfortunately delivery is hard and time consuming -- thus, for now we are not operating. If anyone is interested in continuing this, forking it and making it their own, or simply want some Bitcoin Lightning Network implementation advice, email Rob: [email protected]

Background

Motivated by Starblocks, I wanted to offer the world a dessert to compliment their Testnet coffee. Using Lighting Lab's LND as my gateway to the Lightning Network, I built a React front end to generate invoices for ice cream on top of my LND node.

450 testnet cones later, it's time for the big leagues.

Big Leagues

Disclaimer

This is the pre-alpha version... nuff said.

Getting Started

Prerequisites

export POSTGRES_URI="postgresql://[USERNAME]:[PASSWORD]@localhost/icecream"
export TWILIO_SID=[TWILIO SID]
export TWILIO_AUTH_TOKEN=[TWILIO AUTHORIZATION TOKEN]
export TWILIO_PHONE_NUMBER=[TWILIO PHONE NUMBER]

Setup

  1. Start btcd on simnet or testnet
btcd --testnet --txindex --rpcuser=REPLACEME --rpcpass=REPLACEME
  1. Once btcd is synced, start up lnd
lnd --bitcoin.active --bitcoin.testnet --debuglevel=debug --btcd.rpcuser=kek --btcd.rpcpass=kek --externalip=X.X.X.X
  1. Unlock lnd (or create if this is your first time)
lncli --rpcserver=localhost:10009 create
  1. Create a Postgres database called icecream and create a user with the appropriate privileges
  2. Save all the environment variables from above
  3. Clone Block and Jerry's
cd ~
git clone https://github.com/BlockAndJerrys/blockandjerrys.git
cd blockandjerrys
  1. Copy tls.cert from ~/Library/Application\ Support/Lnd/tls.cert to backend/utils/lightning/tls.cert.
  2. Install dependencies
yarn
  1. Setup DB
yarn sync
  1. Start the web app
yarn start
  1. Start the server Open a new terminal
cd ~/blockandjerrys
yarn testServer // For UI only
yarn server // For real server w/ LND and postgres

Architecture

If you are interested in the architecture of this application, check it out here.

v1 Testnet Release Media:

A how to Medium article.

A demo on Twitter.

A Note to the Community

First of all, thanks for helping out! Block and Jerry's goal is to create a Hands on Bitcoin for the masses, introducing the average Joe to the incredible potential of the Lightning Network. This would not be possible without your help and support.

Why Contribute?

Besides the above, we offer a few tangible incentives for contributing:

  1. A Block and Jerry's sticker of your choice
  2. A mention on the about us community contributors page

Block and Jerry's's Projects

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.