My ideal monorepo setup for working with fullstack web3 development. Can be used for quick prototyping or built on top on for production ready projects.
etherswagmihardhatnext.jstypechain
- built on top of wagmi (❤️) with recognisable api
- write and read hooks are typesafe
- sync deployments to frontend so you dont manually have to update addresses
- no theming or css
web: another Next.js appsmart-contracts: smart contracts with hardhatweb3-config: deployments, generated types from contract and common web3 configui: a stub React component library shared by bothwebanddocsapplicationsconfig:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier)tsconfig:tsconfig.jsons used throughout the monorepo
Each package/app is 100% TypeScript.
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
Install dependencies by running yarn
To run local development run:
yarn dev
To build all apps and packages, run the following command:
yarn build