Lottery smart contract
install truffle to deploy on local development, testnet, mainnet, etc
yarn add truffle
install ganache module to set up local development environment
npm install -g ganache
install node modules
yarn install
if you want to deploy the smart contract on the local
truffle migrate --reset --network development
if you want to deploy the smart contract on bsc-testnet
truffle migrate --reset --network testnet
if you want to deploy the smart contract on bsc-mainnet
truffle migrate --reset --network bsc
after you deployed the smart contract successfully
yarn start
if you want to deploy this lottery site to cloud
yarn build
note
after running yarn build
, you need to copy abi directory from src/abi
to build/abi