- node.js
- testrpc
- truffle
- Run testrpc to simulate ethereum
- Deploy truffle
- Run :
sudo npm install -g ethereumjs-testrpc # for installing testrpc
cd blockchain-Lottery-backend
node app.js
- /lastWinner returns the wallet of the lotto winner
- /participantsCount returns the number of people participating