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.
- 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.
- Node.js: Make sure you have Node.js installed.
-
Clone the repository:
git clone https://github.com/yourusername/web3-ui-starter-pack.git cd web3-ui-starter-pack
-
Install dependencies:
pnpm install #or yarn
-
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>
- Create a
-
Add ABI files:
- Place the ABI of your smart contract in the
abi
folder.
- Place the ABI of your smart contract in the
Start the development server:
yarn run dev
Open http://localhost:3000 in your browser to see the app.
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.
Feel free to fork the repository and submit pull requests. Contributions are welcome!
This project is licensed under the MIT License.