buidler-waffle-typechain-oz-vue
buidler-waffle-typechain-oz-vue copied to clipboard
Dapp starter kit using: Buidler + Waffle + TypeChain + OpenZeppelin CLI + Vue (TypeScript)
Buidler + Waffle + TypeChain + OpenZeppelin CLI + Vue (TypeScript)
Inspired by The New Solidity Dev Stack: Buidler + Ethers + Waffle + Typescript, this is a pre-configured starter kit that uses the latest and greatest tool set to go from zero to hero ๐ช in a quarter of the time, with 10x the type safety ๐ก๏ธ and debugging ๐ capabilities.
Leverage best practice tools such as: Buidler ๐จ for stack traces and console.log in contracts, TypeChain ๐ for contract and front end type definitions, Waffle ๐ฅ for type safe ethers.js contract testing, and Vue with TypeScript/TypeChain support ๐ to round out the stack.
If that's not enough: hit the ground running with test driven development ๐งช following the examples provided for contract, unit, and end to end testing. Objectively know when functionality is complete โ while catching bugs in updates before releasing.
As an added bonus: easily deploy upgradeable contracts - where one can update their contract logic ๐ while maintaining its state ๐ - using the built-in OpenZeppelin CLI. Never worry about migrating again!
Finally, there's lots of under the hood goodies that come pre-configured to build beautiful Progressive Web Apps ๐ฆ that include state management and routing; with more features being released rapidly!
Next on deck: gasless transactions โฝ๐ฅ
Ready to develop like the pros? Use this template to get started! ๐
Using the template
Once you've generated a project and cloned it locally:
Install the dependencies
yarn
Compile and generate type definitions for your contracts
yarn build:contracts
Run your Waffle tests with stack traces
yarn test:contracts
Start the frontend app in development mode (hot-code contract reloading, revert reporting, etc.)
yarn start:node
and in a new terminal
yarn start:dev
then open the app running locally in your favorite browser.
Upgrade your contracts locally
yarn upgrade:local
Start the frontend sans a local blockchain
yarn start:web
Lint and fix files
yarn lint
Build the dApp for production
yarn build
Run your unit tests
yarn test:unit
Run your end-to-end tests
yarn test:e2e
Run ALL the tests!
yarn test