This is the frontend application for NeuroKheti - an AI-powered agricultural assistant built with Next.js 15.
- Node.js 18+
- npm or yarn
- Firebase project
- Gemini API key
-
Install dependencies:
npm install
-
Environment setup:
cp .env.example .env.local
Update
.env.localwith your API keys:GEMINI_API_KEY=your_gemini_api_key NEXT_PUBLIC_USE_FIREBASE_EMULATOR=false
-
Run development server:
npm run dev
- Next.js 15 - React framework with App Router
- TypeScript - Type safety
- Tailwind CSS - Styling
- Firebase - Authentication & Database
- Gemini AI - Image analysis & chat
- Web Speech API - Voice features
- Vercel - Deployment platform
- Crop disease diagnosis with camera
- Multi-language voice assistant (Vaani)
- User authentication
- Responsive design for mobile/desktop
- Real-time AI chat capabilities
- Crop Lifecycle Navigator
- ROI Calculator
- Market price analysis
- Government scheme navigation
- Advanced voice features
- Offline capabilities
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run test- Run tests
/api/analyze-crop- Crop image analysis/api/vaani-chat- Voice assistant chat/api/translate-results- Multi-language translation/api/speech-to-text- Voice recognition (future)/api/text-to-speech- Voice synthesis (future)
# Required
GEMINI_API_KEY=your_gemini_api_key
# Optional - Development
NEXT_PUBLIC_USE_FIREBASE_EMULATOR=false-
Build the application:
npm run build
-
Start production server:
npm start
The app supports 12+ Indian languages:
- Hindi (हिंदी)
- Kannada (ಕನ್ನಡ)
- Telugu (తెలుగు)
- Tamil (தமிழ்)
- Malayalam (മലയാളം)
- Marathi (मराठी)
- Gujarati (ગુજરાતી)
- Punjabi (ਪੰਜਾਬੀ)
- Bengali (বাংলা)
- Odia (ଓଡ଼ିଆ)
- Assamese (অসমীয়া)
- English
npm run testAuthentication:
- User registration
- User login/logout
- Protected routes
Crop Diagnosis:
- Image upload
- Camera capture
- AI analysis
- Multi-language results
Built with ❤️ for farmers worldwide using cutting-edge AI technology.