A lottery application built on the ethereum network powered by smart contract, the client communicates with lottery system thanks to a react app.
🏠 Homepage
> git clone https://github.com/nour-karoui/lottery-ethereum.git
> cd lottery
> npm install
> npm run test
> cd lottery/client
> npm install
> npm start
A user simply chooses an amount of ether to send in order to enter the lottery, this amount should be bigger than 0.1 ether.
A manager selects randomly a winner The winner gets all the ether collected in the lottery, and the game resets.
PS: In order to test this app, you need to have metamask extension installed, and have ether in your rinkeby network account. You can fund your account through faucet.rinkeby.io.
- The contract is deployed in infura (check deploy.js)
- the client side communicates with the smart contract thanks to web3 (check client/src/web3.js && client/src/lottery.js)
- the smart contract is tested with mocha and ganache cli (check test/Lottery.test.js)
👤 Nour
- Github: @nour-karoui
- LinkedIn: @nourkaroui
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a STAR if this project helped you!
This README was generated with by readme-md-generator