Skip to content

omoniyi24/BetJay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BetJay

BetJay is a betting application built fully on the Lightning Network.

demo

BetJay focuses on user privacy and ease of payment. It connects to an existing lightning node (service company node) to exchange bitcoin (in satoshi) between the gambler and the service company based on whether they win or lose.

Features

  • A user may place a wager.
  • BetJay generates invoice
  • BetJay should display the invoice as a QR code for the user to pay.
  • BetJay listens for payment.
  • BetJay automatically places the bet upon payment confirmation.
  • If the bet is lost, BetJay allows the user to play again.
  • BetJay sends the profit amount to the gambler using Keysend
  • LND support

Installation

BetJay connects to an LND node, so a running LND node is required. BetJay can easily run next to LND on the same host or any other hosting provider.

You need to have Node installed. Simply download the binary and run it! Ensure the the below command runs

  1. $ node -v
  2. $ npm -v
  3. $ git clone https://github.com/omoniyi24/BetJay.git

Start Client

$ cd /BetJay/client
$ npm install
$ npm run start

Start Server

$ cd /BetJay/server
$ npm install
$ npm run dev

Note : The BetJay server uses the LND details in the ./server/.env to connect to the LND node. Please make sure to update the credentials. Also, the receiving node (user node) needs to allow Keysend payment (checkout my post on https://medium.com/@omoniyi24/lightning-keysend-2df3fef4f4b4 for more on Keysend). By runs on port 3000 by default.

About

Betting app built on Lightning Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published