Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 409 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 409 Bytes

blockchain-Lottery-backend

What you need to run it:

  • node.js
  • testrpc
  • truffle

How to run:

  • Run testrpc to simulate ethereum
  • Deploy truffle
  • Run :
sudo npm install -g ethereumjs-testrpc # for installing testrpc
cd blockchain-Lottery-backend
node app.js

Routes:

  • /lastWinner returns the wallet of the lotto winner
  • /participantsCount returns the number of people participating