Skip to content

A lottery system built on the ethereum network powered by smart contract, the client communicates with lottery system thanks to a react app.

License

Notifications You must be signed in to change notification settings

nour-karoui/lottery-ethereum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Install

> 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.

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

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a STAR if this project helped you!

📝 License

  • Copyright © 2021 Nour.
  • This project is MIT licensed.

This README was generated with by readme-md-generator

About

A lottery system built on the ethereum network powered by smart contract, the client communicates with lottery system thanks to a react app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published