Lottery Smart Contract built with Solidity, Flutter and React.
- MetaMask based React Webapp
- Private key based Flutter Webapp and APK for non MetaMask supported browsers and devices
Deploy contract on the ethereum network:
npm i
inside root folder and lottery-react to install dependencies.- run
node compile.js
to compile the contract. - run
node deploy.js
to deploy on rinkeby network.
Deploy web app locally:
- copy the contract deployment address from console to
address
variable inside lottery-react/src/lottery.js - run locally with
yarn start
Deploy React web app on gh-pages:
- change
homepage
from lottery-react/package.json tohttps://{username}.github.io/{repo-name}
- run
yarn deploy
to deploy on gh-pages.
Run flutter app:
- run
flutter pub get
to install packages inside pubspec.yaml. - run
flutter run
inside lottery_flutter