Securing Nigeria's Harvest through Blockchain Transparency AgroLedger connects farmers directly to buyers, eliminating middlemen and ensuring fair prices with immutable records.
# AgroLedger
> Securing Nigeria's Harvest through Blockchain Transparency
## πΎ Overview
AgroLedger is a blockchain-based platform that revolutionizes agricultural commerce in Nigeria by connecting farmers directly to buyers. By eliminating middlemen through transparent, immutable records, AgroLedger ensures farmers receive fair prices for their harvest while providing buyers with verified product authenticity and traceability.
## π― Mission
To empower Nigerian farmers and create a more equitable agricultural marketplace through blockchain transparency and direct farmer-to-buyer connections.
## β¨ Key Features
βΆ Farmer dashboards
βΆ Blockchain-authenticated crop listings
βΆ AI-powered chatbot assistance & Image-based produce search
βΆ Role-based authentication
βΆ Marketplace Localised Search
## π Getting Started
### Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Git
### Installation
```bash
# Clone the repository
git clone
github.com
# Navigate to the project directory
cd AgroLedger
# Install dependencies
npm install
# or
yarn install
```
### Development
```bash
# Start the development server
npm run dev
# or
yarn dev
```
The application will be available at `
localhost` (or your configured port).
### Build
```bash
# Build for production
npm run build
# or
yarn build
```
### Testing
```bash
# Run tests
npm test
# or
yarn test
```
## ποΈ Architecture
### Tech Stack
- Next.js, TypeScript, Tailwind CSS, Google Translate Widget
- Database: MongoDB
- Blockchain: Solidity, Ethereum Sepolia Testnet, Ethers.js
- Development & Deployment Tools: Visual Studio Code, GitHub, Vercel
- AI Intelligence: Google Gemini API (Vision & NLP)
- Image Storage: Cloudinary
### Project Structure
```
AgroLedger/
βββ app/ # Next.js app directory
βββ blockchain/ # Hardhat smart contracts
β βββ contracts/ # Solidity contracts
β βββ test/ # Contract tests (Mocha + ethers)
β ββ β¦