Place bet on rollet and win ethers.
This Project is online rollet where user can place bet on any number from 1 to 10 and win if selected number is winning number.
Application uses a number of open source projects to work properly:
- [solidity]
- [truffle]
- [geth]
- [web3]
- [react]
- [ES6]
- [node.js]
- [webpack]
- [Babel]
Requires [Node.js](https://nodejs.org/) - to install and run node modules.
Requires [MetaMask](https://metamask.io/) - to interact with Dapps
Requires [IPFS](https://ipfs.io/docs/install/) - free hosting & decentralized.
$ cd rollet-ethereum
$ npm install
- cd rollet-ethereum
- webpack (if you make any changes in src code otherwise skip this step)
- ipfs daemon
- ipfs swarm peers
- ipfs add -r dist/
- Copy the last hash and run ipfs name publish
<last-hash> - Copy the hash in first line and open
gateway.ipfs.io/ipns/
<first-hash>in browser - Remember to create account on MetaMask and set Metamask on the Ropsten Test Network.
- Enter no of ethers you want to bet
- Select no on which you want to place bet
- Click on submit button. MetaMask window will be popped up.
- Click Reset or Reject or Submit based on what you want to do.
- If you select Submit then bet will be placed and mining will start.
- You can check transaction details by clicking on transactions under MetaMask
- Test cases for Contract
- Play rollet beween 2 players and transfer balance between those 2 accounts