Skip to content

0xmihirsahu/web3-ui-starter-pack

Repository files navigation

Web3 UI Starter Pack

A front-end dApp starter built with Next.js (React), designed for fast development. This starter pack comes pre-configured with essential libraries and tools, so you can skip the setup and dive straight into building your Web3 project.

Built With

  • Next.js: A popular React framework for building fast, server-side rendered applications.
  • wagmi: React hooks for Ethereum.
  • viem: Ethereum interface for developers.
  • rainbowkit: A toolkit for building wallet connection UIs.
  • shadcn-ui and acterenity ui: Component libraries for modern UI elements.

Getting Started

Prerequisites

  1. Node.js: Make sure you have Node.js installed.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/web3-ui-starter-pack.git
    cd web3-ui-starter-pack
  2. Install dependencies:

    pnpm install
    #or
    yarn
  3. Set up environment variables:

    • Create a .env.local file in the root of your project.
    • Add the following variables:
      NEXT_PUBLIC_CONTRACT_ADDRESS=<Your_Contract_Address>
      NEXT_PUBLIC_ALCHEMY_API_KEY=<Your_Alchemy_API_Key>
      NEXT_PUBLIC_RAINBOWKIT_PROJECT_ID=<Your_RainbowKit_Project_ID>
  4. Add ABI files:

    • Place the ABI of your smart contract in the abi folder.

Running the App

Start the development server:

yarn run dev

Open http://localhost:3000 in your browser to see the app.

Usage

This starter pack provides a basic setup for connecting to Ethereum blockchain networks. Customize it according to your project's requirements by modifying components and adding new features.

Contributing

Feel free to fork the repository and submit pull requests. Contributions are welcome!

License

This project is licensed under the MIT License.