Skip to content

nezz0746/typescript-eth-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

86 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”Œ ETH Basic Typescript Starter

โœจ New version (V3!) โœจ

This monorepo should allow you to get started with a simple Counter smart contract on your local anvil instance, and a dapp

  • React / Typescript (Vite โšก)
  • ๐ŸŽ๏ธ Turborepo
  • โš’๏ธ Foundry, with tests & local anvil instance:
    • Multi chain deployments utils
    • Upgradeable Counter example
  • Subgraph to index your smart contracts
  • ๐Ÿ‹ Docker Compose file to run you anvil & graph-node locally quickly
  • ๐Ÿš€ wagmi & ๐ŸŒˆ RainbowKit !
    • Generated custom hooks with the wagmi-cli !
  • graphql-codegen generated hooks to query your subgraph from your apps quickly
  • Tailwind CSS with DaisyUI ๐ŸŒผ !

Recommended:

  • Rivet: Developper wallet & devtool for you local developpement

Get Started

0. Set environment variables (Optional)

1. Install dependencies

yarn

2. Start developement process

Will concurrently:

  • launch your anvil instance
  • start your react app dev server
yarn run dev

3. Deploy

yarn run deploy:local

Will:

  • Run your deploy script on your local chain
  • Regenerate your custom hooks stright into your wagmi-config
/apps
  # You foundry project
  /contracts
  # Your dapp
  /web
/packages
  # Contains wagmi & rainbowkit config and generated code with the wagmi-cli
  /wagmi-config
  # Hosting app constants
  /shared-config