How soham-darak/cep_agrimed works
AgriMed is a farmer-facing crop disease and treatment information app with an agricultural chatbot. The main workflow is selecting a crop and disease on the home page, navigating to a result view, and presenting disease guidance and treatment options. A separate chatbot answers questions through Gemini. The tree and excerpts do not expose the app’s complete feature implementations; unshown relationships are omitted rather than inferred.
Main entry points: App.jsx Page Routing · Result.jsx Disease Results · Chatbot.jsx Chat Interface · chat.js Gemini Client
Components 19
Application Shell
- React Entry
src/main.jsx - Page Routing
src/App.jsx - Login
src/components/Login.jsx - Header Navigation
src/components/Header.jsx - Footer
src/components/Footer.jsx - About Page
src/components/AboutUs.jsx - Contact Page
src/components/ContactUs.jsx - Privacy Policy
src/components/PrivacyPolicy.jsx - Terms of Service
src/components/TermsOfService.jsx
Crop Guidance
- Crop Selection
src/components/Home.jsx - Disease Results
src/components/Result.jsx - Disease Guidance
src/components/Description.jsx - Treatment Options
src/components/Table.jsx
Agricultural Chat
- Chat Interface
src/components/Chatbot.jsx - Agriculture FAQs
src/data/faqData.js - Gemini Client
src/api/chat.js - API Configuration
src/config.js
Other components
- Farmer
- Gemini API
Connections 18
- Farmer → React Entry: opens app
src/main.jsx - React Entry → Page Routing: renders
src/main.jsx - Page Routing → Login: routes to
src/App.jsx - Page Routing → Crop Selection: routes to
src/App.jsx - Page Routing → Disease Results: routes to
src/App.jsx - Page Routing → Header Navigation: renders
src/App.jsx - Page Routing → Footer: renders
src/App.jsx - Page Routing → Chat Interface: renders
src/App.jsx - Page Routing → About Page: routes to
src/App.jsx - Page Routing → Contact Page: routes to
src/App.jsx - Page Routing → Privacy Policy: routes to
src/App.jsx - Page Routing → Terms of Service: routes to
src/App.jsx - Disease Results → Disease Guidance: renders
src/components/Result.jsx - Disease Results → Treatment Options: renders
src/components/Result.jsx - Chat Interface → Agriculture FAQs: imports
src/components/Chatbot.jsx - Chat Interface → Gemini Client: calls
src/components/Chatbot.jsx - Gemini Client → API Configuration: reads key
src/api/chat.js - Gemini Client → Gemini API: sends prompt
src/api/chat.js