A simple decentralized Ethereum betting application built for educational purposes on the Rinkeby Network.
- Allows users to bet test Ether on a number from one to 10.
- After 10 bets have been placed, the smart contract randomly selectes a winning number and deposits the balance of the contract into the winner(s) account(s). The terms of the contract are then reset.
- If no winners have been selected, the balance carries over into drawing (similar to the lottery).
- Clone the project.
git clone https://github.com/zmess24/CasinoCoin.git
. - Run the setup script.
npm run install
- Run the example app.
npm run dev
- Install Node 8.0.0 or greater. Need to run multiple versions of Node? Use nvm.
- Install Git.
CasinoCoin is build using the following technologies:
Tech | Description |
---|---|
React | Fast, composable client-side components. |
Next | Minimalistic framework for server-rendered React applications. |
Semantic UI React | Development framework that helps create beautiful, responsive layouts using human-friendly HTML. |
Solc | JavaScript bindings for the Solidity compiler. |
Ganache CLI | Command line version of Ganache, your personal blockchain for Ethereum development. |
Web3 | API that allows you to interact with a local or remote ethereum node, using a HTTP or IPC connection. |
Truffle Hdwallet Provider | HD Wallet-enabled Web3 provider. Use it to sign transactions for addresses derived from a 12-word mnemonic. |
Mocha | Feature-rich and asynchronous JavaScript test framework running on Node.js and in the browser |