Skip to content
/ web3-template Public template

Minimal setup to strart a web3 project with bun

License

Notifications You must be signed in to change notification settings

TurmericLabs/web3-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turmeric Template

This template provides a minimal setup to get Hardhat Viem woriking with Vite and React. It includes:

  • React working in Vite with HMR and some ESLint rules.
  • A basic setup for TypeScript.
  • Chackra UI for styling.
  • WAGMI and Rainbow Kit libraries for interacting with the wallet.

Prerequisites

  • Bun - A fast all-in-one Javascript/Typescript runtime.

Getting Started

  1. Clone this repository and cd into it
  2. Install dependencies with bun install
  3. Start the development chain and hot-reload frontend with bun dev
  4. Optional: RECIPIENT_ADDRESS=<your-address> bun send-eth to send 1 ETH to your account in the development chain
  5. Open http://localhost:3000 in your browser and connect to the wallet

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

Minimal setup to strart a web3 project with bun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published