Skip to content

aasagba/react-lottery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Lottery

Simple SPA to create an Etheruem Lottery Smart Contract.

Allows users (players) to enter the lottery by specifiying the amount of Ether to enter and clicking on the enter button.

The manager (admin user) can then choose a winner by selecting the 'Pick a winner' button. The chosen winner will then be deposited with the Ether.

The project was generated with react-create-app.

Libraries/Tech used:

  • React,
  • Web3,
  • Metamask (for interface with digital wallets), for testing purposes I used the Ropsten Etheruem Test Network and used a Faucet to generate test Ether,
  • Copy of a previously created Smart Contract on the blockchain.

Dev Server

Run yarn run start for a dev server. Navigate to http://localhost:3000/.

Build

Run yarn run build to build the project.

Running unit tests

Run yarn run test to build the project.

About

Lottery-React project from the Ethereum and Solidity: The complete developer's guide

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published