Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nour-karoui/lottery-ethereum
A lottery system built on the ethereum network powered by smart contract, the client communicates with lottery system thanks to a react app.
https://github.com/nour-karoui/lottery-ethereum
blockchain ether ethereum ganache-cli infura-api lottery metamask mocha mocha-tests reactjs rinkeby-network rinkeby-test-network smart-contracts solidity
Last synced: 23 days ago
JSON representation
A lottery system built on the ethereum network powered by smart contract, the client communicates with lottery system thanks to a react app.
- Host: GitHub
- URL: https://github.com/nour-karoui/lottery-ethereum
- Owner: nour-karoui
- License: mit
- Created: 2021-07-27T20:41:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T22:53:04.000Z (over 3 years ago)
- Last Synced: 2024-11-10T19:53:29.656Z (3 months ago)
- Topics: blockchain, ether, ethereum, ganache-cli, infura-api, lottery, metamask, mocha, mocha-tests, reactjs, rinkeby-network, rinkeby-test-network, smart-contracts, solidity
- Language: JavaScript
- Homepage:
- Size: 254 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to lottery-ethereum 👋
#### A lottery application built on the ethereum network powered by smart contract, the client communicates with lottery system thanks to a react app.
### 🏠 [Homepage](https://github.com/nour-karoui/lottery-ethereum)
## Install
```sh
> git clone https://github.com/nour-karoui/lottery-ethereum.git
> cd lottery
> npm install
> npm run test> cd lottery/client
> npm install
> npm start
```## How It Works
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](https://faucet.rinkeby.io/).## Under The Hood
* 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**)*## Author
👤 **Nour**
* Github: [@nour-karoui](https://github.com/nour-karoui)
* LinkedIn: [@nourkaroui](https://www.linkedin.com/in/nourkaroui/)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/nour-karoui/Inbox-Ethereum/issues). You can also take a look at the [contributing guide](https://github.com/nour-karoui/Inbox-Ethereum/blob/master/CONTRIBUTING.md).## Show your support
Give a [STAR](https://github.com/nour-karoui/lottery-ethereum) if this project helped you!
## 📝 License
* Copyright © 2021 [Nour](https://github.com/nour-karoui).
* This project is [MIT](https://github.com/nour-karoui/lottery-ethereum/blob/master/LICENSE) licensed.***
_This README was generated with by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_