🧪 DAO Box is an open-source, up-to-date starter kit for building production-ready "Fat dApps". It's optimized for quickly developing DeFi products with a true Web2 user experience.
⚙️ Built using NextJS, ShadCN, SimpleKit, Foundry, Wagmi, Viem, Typescript, and powered by Bun.
Note: This project is a fork of Scaffold-ETH 2, but has been extended and modified to provide a comprehensive starter kit for building advanced decentralized applications.
- ✅ Contract Hot Reload: Your frontend auto-adapts to your smart contract as you edit it.
- 🪝 Custom hooks: Collection of React hooks wrapping around wagmi to simplify interactions with smart contracts with TypeScript autocompletion.
- 🧱 Components: Collection of common web3 components to quickly build your frontend.
- 🔥 Burner Wallet & Local Faucet: Quickly test your application with a burner wallet and local faucet.
- 🔐 Integration with Wallet Providers: Connect to different wallet providers and interact with the Ethereum network.
- 🗄️ Database Integration: Includes a database for data persistence.
- 👥 User Management System: Manage user accounts and profiles.
- 🔑 Authentication with SIWE: Secure authentication using Sign-In with Ethereum (SIWE).
- 💼 Smart Accounts for Users: Enable smart contract-based accounts for users.
- 🛡️ Passkeys, Session Keys, and Social Recovery: Provides a true Web2 user experience with enhanced security features.
- ⚡ Optimized for DeFi Products: Quickly build and deploy DeFi applications.
Before you begin, you need to install the following tools:
To get started with DAOBox, follow the steps below:
- Install dependencies if it was skipped in CLI:
cd my-dapp-example
bun install
- Run a local network in the first terminal:
bun chain
This command starts a local Ethereum network using Foundry. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in packages/foundry/foundry.toml
.
- On a second terminal, deploy the test contract:
bun run deploy
This command deploys a test smart contract to the local network. The contract is located in packages/foundry/contracts
and can be modified to suit your needs. The bun deploy
command uses the deploy script located in packages/foundry/script
to deploy the contract to the network. You can also customize the deploy script.
- On a third terminal, start your NextJS app:
bun start
Visit your app on: http://localhost:3000
. You can interact with your smart contract using the Debug Contracts
page. You can tweak the app config in packages/nextjs/scaffold.config.ts
.
Run smart contract test with bun foundry:test
- Edit your smart contract
YourContract.sol
inpackages/foundry/contracts
- Edit your frontend homepage at
packages/nextjs/app/page.tsx
. For guidance on routing and configuring pages/layouts checkout the Next.js documentation. - Edit your deployment scripts in
packages/foundry/script
Visit our docs to learn how to start building with DAOBox.
To know more about its features, check out our website.
We welcome contributions to DAOBox!
Please see CONTRIBUTING.MD for more information and guidelines for contributing to DAOBox.