Welcome to the Arbitrum Starter Kit! This starter kit provides you with a solid foundation for building decentralized applications (dApps) on the Arbitrum network. It comes pre-configured with Next.js, Wagmi v2, Viem, RainbowKit, TypeScript, Tailwind CSS, and Shadcn, enabling you to quickly start developing your dApp.
To get started with the Arbitrum Starter Kit, follow these steps:
-
Clone the repository or click on the Use this template button:
https://github.com/HAPPYS1NGH/arbitrum-starter-kit
-
Navigate to the project directory:
cd arbitrum-starter-kit
-
Create a
.env
or.env.local
file in the root directory and obtain the WalletConnect project ID from WalletConnect. Add the following line to your.env
or.env.local
file:WALLET_CONNECT_PROJECT_ID=<your_wallet_connect_project_id>
-
Install dependencies:
npm install
or
yarn install
-
Start the development server:
npm run dev
or
yarn dev
-
Open your web browser and navigate to
http://localhost:3000
to view the application.
This starter kit provides hooks from Wagmi v2 for interacting with smart contracts on the Arbitrum network. You can use these hooks to read and write data to contracts.
The project follows a standard directory structure for a Next.js application. Here's an overview of the directory structure:
βββ README.md
βββ components.json
βββ next-env.d.ts
βββ next.config.js
βββ package-lock.json
βββ package.json
βββ postcss.config.js
βββ public
β βββ arbitrum.svg
βββ src
β βββ app
β β βββ favicon.ico
β β βββ globals.css
β β βββ layout.tsx
β β βββ page.tsx
β β βββ read
β β β βββ page.tsx
β β βββ write
β β βββ page.tsx
β βββ components
β β βββ shared
β β β βββ Navbar.tsx
β β βββ ui
β β βββ button.tsx
β β βββ input.tsx
β β βββ sonner.tsx
β βββ containers
β β βββ home
β β β βββ Profile.tsx
β β βββ read
β β β βββ ReadContract.tsx
β β βββ write
β β βββ WriteContract.tsx
β βββ lib
β β βββ utils.ts
β βββ providers
β β βββ Layout.tsx
β β βββ Web3Provider.tsx
β βββ utils
β βββ config.ts
βββ tailwind.config.ts
βββ tsconfig.json
If you encounter any issues or have questions regarding the Arbitrum Starter Kit, please don't hesitate to reach out to us:
- Twitter: https://twitter.com/happys1ngh
- GitHub Issues: arbitrum-starter-kit
Happy coding! π