- 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 Ticket
on website - if you areadmin
, you cannot play the game. - Waiting result, when Admin is
stopped
the game. 5.1 (option); Only admin CAN stop the game
- You MUST prepare your ERC20 address, deploy them, or USING my faucet.
- Copy
.env.template
to.env
, and insert yourprivate-key
to deploy. - Run:
deploy contract
truffle mirgrate --network testnet
lottery
totestnet
. Copy this address tosrc/config.js
replaceLotteryAddr
(you can change your ERC20 token at step 1 - if use your token). - Restart:
npm run start
- Give link for player, and you can
STOP
the game whenever!
Please enjoy and have fun with Lottery Game
!