A full-stack web application that connects farmers directly with buyers. Farmers can list their crops, and buyers can show interest in purchasing them.
🔗 Live Demo: https://endearing-bubblegum-6944b3.netlify.app/
-
🌱 Crop Listing & Details Farmers can post crops with images, price, quantity, location, and description.
-
🤝 Show Interest Buyers can send purchase requests with quantity and optional messages.
-
✅❌ Accept / Reject Interests Farmers can accept or reject incoming requests.
-
📌 My Interests Page Buyers can track all their requests (Pending, Accepted, Rejected).
-
🔐 Authentication Secure login using email/password or Google (via NextAuth).
-
📱 Responsive Design Mobile-friendly UI built with Tailwind CSS & DaisyUI.
-
🎬 Animations Smooth UI interactions using modern animation libraries.
- Next.js 16
- React 19
- Tailwind CSS
- DaisyUI
- React Icons
- Recharts (for data visualization)
- Node.js
- Express.js
- MongoDB (Atlas)
- NextAuth.js
- Firebase Admin SDK (for token verification if used)
- Stripe
- React Leaflet / Mapbox (react-map-gl)
git clone https://github.com/your-username/krishilink.git
cd krishilinknpm installnpm run dev👉 Open http://localhost:3000 in your browser
Create a .env.local file in the root:
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_secret_key
NEXTAUTH_URL=http://localhost:3000
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
STRIPE_SECRET_KEY=your_stripe_secret/app → App router pages
/components → Reusable UI components
/lib → Database & utility functions
/models → Mongoose schemas
/public → Static assets
/styles → Global styles
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/crops | Get all crops |
| POST | /api/crops | Add new crop |
| POST | /api/interests | Send interest request |
| PATCH | /api/interests | Accept/Reject request |
- Frontend: Netlify / Vercel
- Backend: Render / Railway / VPS
Contributions are welcome!
- Fork the repo
- Create a new branch
- Commit your changes
- Open a Pull Request
This project is licensed under the MIT License.
Developed with ❤️ to empower farmers and simplify agricultural trade.