Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

Welcome to lottery-ethereum 👋




Documentation


Maintenance


License: MIT

#### 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)_