This is a Next.js project bootstrapped with create-next-app
, customized for the Decentral Bros (DBRO) project. It includes Web3 integration using wagmi, a responsive header with social icons, and other custom components.
Follow these steps to set up the DBRO scaffold on your local machine:
-
Clone the repository:
git clone https://github.com/Mr-Web3/DBRO-Scaffold
-
Navigate to the project directory:
cd dbro-scaffold
-
Install dependencies:
yarn install
-
Set up your environment variables:
- Copy the
.env.example
file to.env.local
- Update the values in
.env.local
with your own configuration
- Copy the
-
Start the development server:
yarn dev
-
Open http://localhost:3000 with your browser to see the result.
components/
: Contains reusable React components (e.g., Header, Footer, SocialIcons)pages/
: Next.js pages and API routesstyles/
: Global styles and Tailwind CSS configurationpublic/
: Static assets (images, fonts, etc.)
- Web3 integration with wallet connection using wagmi (configured for Base mainnet)
- Responsive header with navigation and social icons
- Custom styling using Tailwind CSS
- TypeScript support for improved developer experience
You can start customizing the project by modifying the following files:
pages/index.tsx
: The main landing pagecomponents/Header.tsx
: The site header with navigation and wallet connectioncomponents/SocialIcons.tsx
: Social media icons and linksstyles/globals.css
: Global styles and Tailwind CSS imports
This scaffold is set up to work with the Base mainnet by default. If you want to change the network:
- Modify the
wagmi.config.ts
file to update the chain configuration. - Update the
.env.local
file with the correct RPC URL for your chosen network.
To get an RPC URL, you can sign up for a free account at Alchemy. Alchemy provides Web3 APIs and allows you to create endpoints for various networks.
To add support for more wallets:
- Update the Web3Modal configuration in your project.
- Modify the
wagmi.config.ts
file to include the new wallet connectors.
This project uses wagmi, a collection of React Hooks for Ethereum, to handle wallet connections and interactions with the blockchain. Wagmi provides a simple and efficient way to integrate Web3 functionality into your React application.
Key wagmi features used in this project:
- Wallet connection and disconnection
- Account and balance information retrieval
- Network switching and configuration
For more information on how to use wagmi in this project, refer to the components/Header.tsx
file and the wagmi documentation.
To learn more about the technologies used in this project, check out the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Tailwind CSS - a utility-first CSS framework.
- Web3Modal - a library to help with wallet connections.
- wagmi - a collection of React Hooks for Ethereum.
- Base - learn about the Base network.
- Alchemy - Web3 development platform and API provider.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.
We welcome contributions to improve the DBRO scaffold. Please feel free to submit issues or pull requests to our GitHub repository.
MIT License $DBRO