A comprehensive agricultural management platform built with Next.js, designed to empower farmers with modern tools and resources for better farming practices.
- AI Chat Assistant - Intelligent chatbot for farming queries and guidance
- Photo Analysis - AI-powered crop and pest detection using image analysis
- FarmerScope - Real-time farm advisories from kisanmitra.net
- PestScope - Latest pest alerts and management strategies
- Guides - Comprehensive farming guides and best practices
- Community - Connect with other farmers and share knowledge
- Calendar - Crop planning and seasonal activity management
- Suppliers - Find and connect with agricultural suppliers
- Tracking - Monitor crop growth and farm activities
- Dashboard - Overview of all farm operations and analytics
- Plan - Strategic crop planning and resource management
- Grow - Growth tracking and optimization tools
- Sell - Marketplace features for selling produce
- π Multi-language support (i18n)
- π± Responsive mobile-first design
- π¨ Modern UI with Tailwind CSS
- π Real-time data fetching with Next.js API routes
- π Web scraping integration for live agricultural advisories
- β‘ Optimized performance with React 19
{
"cheerio": "^1.1.2", // Web scraping for farm advisories
"lucide-react": "^0.548.0", // Modern icon library
"next": "^16.0.2", // React framework
"prettier": "^3.6.2", // Code formatting
"react": "19.2.0", // UI library
"react-dom": "19.2.0" // React DOM renderer
}{
"@types/node": "^20", // Node.js type definitions
"@types/react": "^19", // React type definitions
"@types/react-dom": "^19", // React DOM type definitions
"autoprefixer": "^10.4.21", // PostCSS plugin for CSS prefixing
"eslint": "^9", // JavaScript linter
"eslint-config-next": "^16.0.2", // Next.js ESLint configuration
"postcss": "^8.5.6", // CSS transformer
"tailwindcss": "^3.4.14", // Utility-first CSS framework
"tailwindcss-animate": "^1.0.7", // Animation utilities for Tailwind
"typescript": "^5" // TypeScript compiler
}- Clone the repository
git clone https://github.com/Agriworks/kisanmitra_app.git
cd kisanmitra_app- Install dependencies
npm install
# or
yarn install
# or
pnpm installRun the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the application.
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run format # Format code with Prettierkisanmitra_app/
βββ app/
β βββ api/ # API routes
β β βββ farmer-scope/ # Farm advisory scraping API
β β βββ pest-scope/ # Pest alert scraping API
β βββ components/ # React components
β β βββ CalendarView.tsx
β β βββ ChartBot.tsx
β β βββ Community.tsx
β β βββ Dashboard.tsx
β β βββ FarmerScope.tsx
β β βββ FeaturesComing.tsx
β β βββ Grow.tsx
β β βββ Guides.tsx
β β βββ LanguageSelection.tsx
β β βββ PestScope.tsx
β β βββ PhotoAnalysis.tsx
β β βββ Plan.tsx
β β βββ Sell.tsx
β β βββ SplashScreen.tsx
β β βββ Suppliers.tsx
β β βββ Tracking.tsx
β βββ globals.css # Global styles
β βββ i18n.tsx # Internationalization setup
β βββ layout.tsx # Root layout
β βββ page.tsx # Main page
β βββ providers.tsx # Context providers
βββ public/ # Static assets
βββ eslint.config.mjs # ESLint configuration
βββ next.config.ts # Next.js configuration
βββ package.json # Project dependencies
βββ postcss.config.js # PostCSS configuration
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
This project uses:
- Tailwind CSS - Utility-first CSS framework
- tailwindcss-animate - Pre-built animations
- Lucide React - Beautiful, consistent icons
- PostCSS - CSS transformations
- Scrapes live farm advisories from kisanmitra.net
- Returns categorized farming advice and updates
- Provides latest agricultural news and recommendations
- Fetches real-time pest alerts
- Returns pest management strategies
- Provides preventive measures and treatments
The project is fully typed with TypeScript for better developer experience and code quality.
Configured with Next.js recommended rules for consistent code style.
Automatic code formatting on save for clean and consistent code.
The app supports multiple languages through the i18n system in app/i18n.tsx. Language selection is available through the LanguageSelection component.
Built mobile-first with responsive breakpoints:
- Mobile: < 768px
- Tablet: 768px - 1024px
- Desktop: > 1024px
The easiest way to deploy your Next.js app is to use the Vercel Platform.
npm run build
npm run startTo learn more about the technologies used:
- Next.js Documentation - Learn about Next.js features and API
- React Documentation - Learn React
- Tailwind CSS - Utility-first CSS framework
- TypeScript - JavaScript with syntax for types
- Cheerio - Fast, flexible web scraping
Contributions are welcome! Please feel free to submit a Pull Request.
This project is private and proprietary.
Developed by Agriworks
KisanMitra - Empowering farmers through technology πΎ