Blockchain-Powered AgriTech Ecosystem for Food Security and Farmer Empowerment
Foodra is a decentralized agricultural technology platform that empowers smallholder farmers with direct market access, training programs, funding opportunities, and blockchain-based digital wallets. The platform is designed to drive financial inclusion, improve productivity, and strengthen food security across Africa, starting with Nigeria.
To contribute towards an Africa that does not depend on the outside world to feed her. Using the least available resources to maximize the capacity of the African food production and supply chain. Through the application of technology, available financial support, and market availability, smallholder farmers will boost in capacity and in turn boost the African food capacity.
To offer value to African farmers through sustainable practices and a sustainable supply chain. This includes sustainable practices that protect our environment, a sustainable supply chain that ensures fair value distribution, and farmer empowerment through technology and market access.
- Farmers can list and sell agricultural products directly to buyers
- Product listings include name, category, quantity, price, description, and images
- Search and filter functionality by category
- Direct connection between farmers and buyers, eliminating middlemen
- Real-time product availability tracking
- Access to online and offline agricultural training sessions
- Expert instructors teaching modern farming techniques
- Enrollment system with capacity tracking
- Training categories covering various farming practices
- Digital and in-person education options
- Farmers can apply for loans and grants
- Application tracking system (Pending, Approved, Rejected)
- Detailed application forms capturing farm size, experience, and funding needs
- Transparent funding request and approval workflow
- User-specific application dashboard
- Blockchain-based wallet integration via Privy
- Support for Base and Base Sepolia networks
- ETH balance tracking with real-time conversion to USD, USDC, and NGN
- Send and receive cryptocurrency
- Transaction history with filtering (all, sent, received)
- QR code generation for receiving payments
- Multi-chain support with easy network switching
- Decentralized authentication via Privy
- Wallet-based identity management
- User profiles with avatar generation
- Profile completion tracking
- Secure session management
- Framework: Next.js 16 (React 19)
- Styling: Tailwind CSS 4
- UI Components: Radix UI, NextUI
- Animations: Framer Motion
- Forms: React Hook Form with validation
- State Management: React hooks
- Database: Supabase (PostgreSQL)
- Authentication: Privy (wallet-based auth)
- Storage: Supabase Storage (images)
- API: Next.js API Routes
- Wallet Integration: Privy
- Blockchain Network: Base (Mainnet & Sepolia Testnet)
- Web3 Library: Ethers.js, Wagmi
- QR Codes: qrcode.react
- Date Handling: date-fns
- Email: EmailJS
- Analytics: Vercel Analytics
foodra-platform/
├── frontend/
│ ├── app/
│ │ ├── marketplace/ # Product listings and details
│ │ ├── training/ # Training programs
│ │ ├── funding/ # Funding applications
│ │ ├── wallet/ # Crypto wallet interface
│ │ ├── profile/ # User profiles
│ │ ├── shop/ # Shopping cart and checkout
│ │ ├── orders/ # Order management
│ │ ├── users/ # User directory
│ │ ├── search/ # Search functionality
│ │ └── api/ # API routes
│ ├── components/ # Reusable UI components
│ ├── lib/
│ │ ├── types.ts # TypeScript interfaces
│ │ ├── useUser.tsx # User management hook
│ │ ├── useCart.tsx # Shopping cart hook
│ │ ├── localStorage.ts # Local storage utilities
│ │ └── schemas.ts # Form validation schemas
│ └── public/ # Static assets
└── smartcontract/
├── contracts/ # Solidity smart contracts
├── scripts/ # Deployment scripts
├── test/ # Contract tests
└── ignition/ # Deployment modules
- Product information (name, category, quantity, price)
- Farmer details (ID, name, avatar)
- Location and creation timestamp
- Product images and descriptions
- Training details (title, description, date)
- Mode (online/offline) and location
- Instructor information
- Capacity and enrollment tracking
- Applicant information (name, phone, location)
- Farm details (size, type, experience)
- Funding request (amount, expected outcome)
- Application status tracking
- User identity (ID, name, email)
- Wallet address
- Avatar and profile information
- Account creation timestamp
- Product items with quantities
- Total amount calculation
- Order status tracking
- User-specific order history
- Node.js 20+
- npm or pnpm
- MetaMask or compatible Web3 wallet
- Supabase account
- Create a Supabase project at supabase.com
- Run the SQL scripts in
/supabasefolder:schema.sql- Database tablesrls.sql- Security policiesstorage.sql- Image storageseed.sql- Sample data (optional)
See /supabase/README.md for detailed instructions.
cd frontend
npm installCreate .env.local:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_PRIVY_APP_ID=your_privy_app_id
NEXT_PUBLIC_BASESCAN_API_KEY=your_basescan_api_key
Run the development server:
npm run devThe application will run on http://localhost:3000
cd smartcontract
pnpm install
npx hardhat compile
npx hardhat test- Marketplace with product listing and browsing
- Training program enrollment system
- Funding application workflow
- Digital wallet with multi-chain support
- User authentication and profiles
- Shopping cart and order management
- Transaction history tracking
- Responsive UI with dark mode support
- Smart contract integration for marketplace transactions
- Payment processing with stablecoins
- Advanced search and filtering
- Notification system
- Admin dashboard for application management
- AI-powered credit scoring
- IPFS integration for decentralized storage
- Mobile application
- Multi-language support
- Analytics dashboard
- Insurance integration
Contributions are welcome! Areas of focus:
- Blockchain developers (Solidity, Web3)
- Frontend developers (Next.js, React)
- UI/UX designers
- Agricultural domain experts
- Technical writers
Fork the repository, create a feature branch, commit your changes, and open a pull request.
This project is licensed under the MIT License.
Foodra is building the future of African agriculture through transparency, inclusion, and intelligent infrastructure.