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/
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]
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.
This is the pre-alpha version... nuff said.
- Lightning Network Daemon (LND)
- BTCD or Bitcoind -- these are unneeded for the Neutrino Light Wallet
- Postgres
- Google Maps API Key
- Twilio API Key (trial works)
- Environment variables:
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]
- Start btcd on simnet or testnet
btcd --testnet --txindex --rpcuser=REPLACEME --rpcpass=REPLACEME
- 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
- Unlock lnd (or create if this is your first time)
lncli --rpcserver=localhost:10009 create
- Create a Postgres database called
icecream
and create a user with the appropriate privileges - Save all the environment variables from above
- Clone Block and Jerry's
cd ~
git clone https://github.com/BlockAndJerrys/blockandjerrys.git
cd blockandjerrys
- Copy
tls.cert
from~/Library/Application\ Support/Lnd/tls.cert
tobackend/utils/lightning/tls.cert
. - Install dependencies
yarn
- Setup DB
yarn sync
- Start the web app
yarn start
- Start the server Open a new terminal
cd ~/blockandjerrys
yarn testServer // For UI only
yarn server // For real server w/ LND and postgres
If you are interested in the architecture of this application, check it out here.
A how to Medium article.
A demo on Twitter.
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.
Besides the above, we offer a few tangible incentives for contributing:
- A Block and Jerry's sticker of your choice
- A mention on the about us community contributors page