- Clone repo to your local
- Cd to repo, run:
- npm install
- npm run start
- Open website: http://localhost:3000/ [port: based on your local]
- You are player. Cannot stop the game.
- Go to: https://testnet.binance.org/faucet-smart to request 0.2 BNB as fee transaction.
- You MUST claim, erc20 token from my faucet(OR can use your ERC20 - testnet, see at Deployment Contract).
- Approve/Betting: when your account NOT approve yet, so you should be approve first, then Betting.
- You can see your
Number Ticketon website - if you areadmin, you cannot play the game. - Waiting result, when Admin is
stoppedthe game. 5.1 (option); Only admin CAN stop the game
- You MUST prepare your ERC20 address, deploy them, or USING my faucet.
- Copy
.env.templateto.env, and insert yourprivate-keyto deploy. - Run:
deploy contract
truffle mirgrate --network testnetlotterytotestnet. Copy this address tosrc/config.jsreplaceLotteryAddr(you can change your ERC20 token at step 1 - if use your token). - Restart:
npm run start - Give link for player, and you can
STOPthe game whenever!
Please enjoy and have fun with Lottery Game!