Monorepo for rapid development of production grade EVM dApps.
git clone <url>
cp ./packages/hardhat/.env.example ./packages/hardhat/.env
- Update
./packages/hardhat/.env
cp ./packages/next/.env.example ./packages/next/.env
- Update
./packages/next/.env
yarn install
yarn dev
- MetaMask
- Import Hardhat Account #0 Private Key
- Import Hardhat Account #1 Private Key
- Switch to Hardhat Account #0
- Update "Localhost 8545" Network Chain ID to
31337
(Settings -> Networks -> Localhost 8545 -> Chain ID) - Reset Account (Settings -> Advanced -> Reset Account)
yarn hardhat:clean
- Ensure that
./packages/hardhat/.env
is up-to-date NETWORK= yarn hardhat:deploy
NETWORK= yarn hardhat:verify
yarn next:clean
- Ensure that
./packages/next/.env
is up-to-date FLEEK_API_KEY= yarn workspace next exec 'fleek site:init'
*- Open
./packages/next/.fleek.json
and changepublicDir
toout
* FLEEK_API_KEY= yarn next:deploy
* Not necessary for subsequent deployments.
yarn [<workspace>:]build
yarn [<workspace>:]clean
yarn [<workspace>:]coverage
yarn [<workspace>:]format
yarn [<workspace>:]lint
yarn [<workspace>:]lint-staged
yarn [<workspace>:]metrics
yarn [<workspace>:]test
yarn [<workspace>:]watch
NETWORK= FLEEK_API_KEY= yarn [<workspace>:]deploy
NETWORK= yarn [<workspace>:]export
yarn workspace <name> add [-D] <dependency>
yarn workspace <name> run <script>
NETWORK= yarn hardhat:deploy
NETWORK= yarn hardhat:export
NETWORK= yarn hardhat:verify
FLEEK_API_KEY= yarn workspace next exec 'fleek site:init'
FLEEK_API_KEY= yarn next:deploy
- Do global search for current version
- Update findings to use new version
- Update
eslint.workingDirectories
config in.vscode/settings.json