njaladan / Etherball

🎟 Ethereum lottery DAPP designed to work with Metamask and web3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Etherball 🎟

Build Status

Etherball is a simple lottery web app with numerical tickets and a fixed jackpot built for the Ethereum blockchain.

Features

Etherball features:

β€’ Easy to purchase ticket interface (and prevention of duplicate tickets)

β€’ Works with the Metamask wallet and Mist browser

β€’ A simple but functional front-end built with Bootstrap

β€’ Integration with all major Ethereum testnets

β€’ A blockchain-based randomness generator to ensure fairness

β€’ Real-time ether to USD converter

Technologies Used

β€’ Truffle

β€’ Node.js

β€’ TestRPC

β€’ Bootstrap

β€’ Web3

Installation

Installing Etherball to use on your machine is simple. First,

git clone

the repository. Next, navigate to the cloned directory and install the necessary Node.js modules with

npm install

Create and place your 12-word mnemonic private key at the location

keystore/eth_keystore.txt

Initialize a local blockchain with

testrpc

and deploy the smart contract with

truffle migrate

Finally, to open the web app,

npm run dev

Miscellaneous

β€’ The majority of the code powering the app is located in contracts/Lottery.sol and src/js/app.js - if you'd like to see how the app works in any way, that's probably the place to go.

β€’ The source of randomness for this lottery system comes from a SHA-256 hash taken from the blockchain timestamp and number.

β€’ Feel free to submit a pull request if you have any changes or suggestions to make. :)

Licensing

Etherball is released under the terms of the MIT license. For more information, see https://opensource.org/licenses/MIT.

About

🎟 Ethereum lottery DAPP designed to work with Metamask and web3.

License:MIT License


Languages

Language:JavaScript 97.5%Language:HTML 1.6%Language:Solidity 0.8%Language:CSS 0.1%