FarmBase is a decentralized marketplace designed to connect farmers and buyers, allowing transactions using cryptocurrency. Our mission is to empower local farmers by providing a platform to showcase their products and facilitating seamless transactions on-chain.
- User Registration: Farmers and buyers can create accounts and connect their wallets.
- Product Listing: Farmers can list their products with details such as price, description, and images.
- Transaction System: Secure transactions using cryptocurrency facilitated by smart contracts.
- User Dashboards: Manage listings of products and transactions through personalized dashboards.
- Frontend: NextJS
- Blockchain: Ethereum (Base network)
- Smart Contracts: Solidity
- Wallet Integration: MetaMask & Coinbase Smart Wallet
To set up and run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/rodweleo/farmbase.git cd farmbase
- Install dependencies:
npm install
- Set up the environment variables. Create a .env.local file based on the provided template below:
NEXT_PUBLIC_ONCHAINKIT_API_KEY="" NEXT_PUBLIC_WALLETCONNECT_PROJECTID= "" NEXT_PAYMASTER_AND_BUNDLER_BASE_MAINNET_ENDPOINT = "" NEXT_PAYMASTER_AND_BUNDLER_BASE_SEPOLIA_ENDPOINT = "" NEXT_BASENAME_L2_RESOLVER_ADDRESS = ""; NEXT_COINBASE_VERIFIED_ACCOUNT_SCHEMA_ID = ""
- Start the application:
npm run dev
- Marketplace Contract: 0x19C0E91f963D6a85E4BBB0c6b0b6A2ecC4Dcb184
- Order Management Contract: 0x9d5bc327cebbfcd945e20a81fa42a1d2157e8f5c
- User Management Contract: 0xBc9D4E4cbc8A162Ce7f1C01dd864a0d272B557c4
- Payment Management Contract: 0xd015b10d9dff563a393158e0765aef22d823f7c9
This project is licensed under the MIT License. See the LICENSE file for details.