Coder Social home page Coder Social logo

dedalik / etherball Goto Github PK

View Code? Open in Web Editor NEW

This project forked from njaladan/etherball

0.0 2.0 0.0 1.2 MB

๐ŸŽŸ Ethereum lottery DAPP designed to work with Metamask and web3.

License: MIT License

JavaScript 98.28% CSS 0.08% HTML 1.64%

etherball's Introduction

Etherball ๐ŸŽŸ

Build Status

Etherball is a simple lottery web app with numerical tickets and a fixed jackpot built for the Ethereum blockchain. The current link to use Etherball is https://lottery.now.sh, though this link is subject to change.

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.

etherball's People

Contributors

njaladan avatar

Watchers

James Cloos avatar Radiks Alijevs 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.