This project serves educational purposes, offering a web application that allows users to place bets on randomly generated numbers using Ether. A smart contract manages the bets, receives Ether, and determines the winning number randomly. The participant with the correct number receives the accumulated Ether sum.
The project is divided into 3 projects:
- Lottery Smart Contract: This handle the bets and decided the winner of the bets. Also reward the winner with all money available;
- Back-end Lottery Smart Contract: This handle the requests from the user and send it to the smart contract.
- Front-end Lottery Smart Contract*: This is the user interface that the use perform actions.
- Run the development server: yarn dev
- Open http://localhost:3000 with your browser to see the result.