# AgriTech Mandi - Marketplace for Farmers and Buyers
AgriTech Mandi is a full-stack web application designed to directly connect farmers with buyers through a user-friendly platform. It features OTP-based phone authentication, real-time bidding, and making it accessible even to farmers without smartphones.
---
## Features
### OTP-Based Authentication (via Firebase)
- Phone number login using Firebase.
- No need for email or password.
- Designed for farmers without smartphones — accessible via assisted login
### User Roles
- **Farmer:** Add/edit crop listings, track harvests, view buyer bids, and receive price analytics.
- **Buyer:** Search for crops, place bids, chat with farmers, and view suggested matches.
### Farmer Dashboard
- Add/edit/delete crops.
- Track sowing/harvest dates, quantity, pricing, and location.
- View price trends from public APIs (AGMARKNET).
- Receive crop recommendations and buyer interest alerts.
### Buyer Dashboard
- Filter crops by region, type, price, or harvest window.
- View listing map, farmer contacts, and start bidding.
- Real-time chat with farmers for negotiation.
### Bidding & Transaction Support
- Buyers place live bids on crop listings.
- Farmers accept best offers.
- No payment is integrated default-online
- Transaction record stored with buyer/farmer.
### Real-Time Mandi Pricing (AGMARKNET API)
- Price analysis and export of respective price csv
---
## Future-Ready Additions
### AI APIs (Pluggable)
- `/ai/search-crops`: AI-based crop search.
- `/ai/price-predict`: Predict mandi price for given crop, date, and location.
- `/ai/recommend-crop`: Suggest crops based on season and soil.
- `/ai/match-buyers`: Recommend buyers for specific produce.
### Offline Support (Optional)
- SMS-based listing for low-tech farmers.
- Buyer notifications via SMS.
- Firebase offline caching.
### Modular Architecture
- Microservice-style modu …