A simple Dapp built with Vue3, Hardhat, and TypeScript.
- vitedf
- hardhat
- typescript
- yarn workspace
In the project root ./dapp-vue3
- Install workspaces dependencies
yarn
- Compile contracts and typechain
yarn build:contracts
- Run hardhat network on http://localhost:8545 with chainID 31337
yarn start:node
- Run frontend dev
yarn dev
- Deploy default contract to hardhat network
yarn deploy:local
This project is heavily inspired by the following awesome projects.
- vue-composable: https://github.com/pikax/vue-composable/blob/master/packages/vue-composable/src/web/webSocket.ts
- useDapp: https://limaois.me/archives/293
- web3model-vue: https://github.com/SmallRuralDog/web3modal-vue
- vue-tailwind-ethereum-template: https://github.com/chnejohnson/vue-tailwind-ethereum-template
- vue3-eth: https://github.com/samatechtw/vue3-eth
- docs: https://docs.metamask.io/guide/getting-started.html#basic-considerations
- json-rpc-api https://metamask.github.io/api-playground/api-documentation/#wallet_addEthereumChain
- detect-provider: https://github.com/MetaMask/detect-provider/blob/main/src/index.ts
yarn workspace @dapp-vue3/frontend add <package> --dev
npx hardhat
yarn create vite