How dhanyalk-alt/fsdproject works
Ritha Bandu is a farmer-facing web application for agricultural information and services. Users enter through the routed React app, browse farming resources and tools, and can use account, transport, and rewards features; the ML and transport pages call backend API endpoints. The backend includes authentication controller logic and a user model. The README only documents Create React App setup, and backend route wiring and most API implementations were not sampled, so those connections are shown as unverified where appropriate.
Main entry points: App.js Routed app · server.js API server · HomePage.js Home · MLPage.js Crop and disease tools
Components 24
Application shell
- Routed app
src/App.js - Header
src/components/Header.js - Navigation drawer
src/components/SideDrawer.js
Farm information
- Home
src/pages/HomePage.js - Education
src/pages/EducationPage.js - Government programs
src/pages/GovernmentPage.js - Crop and disease tools
src/pages/MLPage.js - Market prices
src/pages/MarketPrice.js - Weather
src/pages/Weather.js - Agricultural news
src/pages/News.js - Home cards
src/components/InfoCard.js - Background video
src/components/BackgroundVideo.js - Advertisement
src/components/Advertisement.js
Farmer services
- Transport listing
src/pages/TransportPage.js - Rewards
src/pages/Rewards.js
Account and preferences
- Login
src/pages/LoginPage.js - Sign up
src/pages/SignupPage.js - Edit profile
src/pages/EditProfilePage.js - Settings
src/pages/SettingsPage.js - Theme state
src/context/ThemeContext.js
Backend
- API server
backend/server.js - Authentication logic
backend/authController.js - User model
backend/userModel.js
Other components
- Farmer
Connections 26
- Farmer → Routed app: uses
src/App.js - Routed app → Header: renders
src/App.js - Routed app → Navigation drawer: renders
src/App.js - Routed app → Home: routes to
src/App.js - Routed app → Education: routes to
src/App.js - Routed app → Government programs: routes to
src/App.js - Routed app → Crop and disease tools: routes to
src/App.js - Routed app → Market prices: routes to
src/App.js - Routed app → Weather: routes to
src/App.js - Routed app → Agricultural news: routes to
src/App.js - Routed app → Transport listing: routes to
src/App.js - Routed app → Rewards: routes to
src/App.js - Routed app → Login: renders
src/App.js - Routed app → Sign up: renders
src/App.js - Routed app → Edit profile: routes to
src/App.js - Routed app → Settings: routes to
src/App.js - Routed app → Theme state: provides
src/App.js - Home → Home cards: renders
src/pages/HomePage.js - Home → Background video: renders
src/pages/HomePage.js - Home → Advertisement: renders
src/pages/HomePage.js - Crop and disease tools → API server: calls API
- Transport listing → API server: calls API
- Rewards → API server: calls API
- Routed app → API server: calls auth API
- API server → Authentication logic: dispatches to
- Authentication logic → User model: reads and saves
backend/authController.js