How webdevproject123/krishak_shayak_frontend works
Krishak Shayak is a farmer-focused React application combining agricultural information with a buyer/seller marketplace. Users enter through routed pages; marketplace buyers browse products, manage a cart, and place orders, while sellers manage products, orders, and shop profiles. Separate features provide weather, market prices, crop guidance, health information, and government schemes. The graph reflects documented routes and sampled service relationships; several page-to-service connections are supported only by the source index, and unsampled details are omitted.
Main entry points: App.jsx Page Router · marketplaceService.js Marketplace Operations · api.js API Client · ShoppingCart.jsx Shopping Cart
Components 28
Application Shell
- React Entry
src/main.jsx - Page Router
src/App.jsx - Home
src/pages/Home.jsx - Navigation
src/components/Navbar.jsx
Marketplace
- Marketplace Browse
src/pages/Marketplace.jsx - Product Detail
src/pages/ProductDetail.jsx - Shop Detail
src/pages/ShopDetail.jsx - Shopping Cart
src/pages/ShoppingCart.jsx - Order Views
src/pages/Orders.jsx - Order Confirmation
src/pages/OrderConfirmation.jsx - Seller Dashboard
src/pages/SellerDashboard.jsx - Farmer Dashboard
src/pages/FarmerDashboard.jsx
Identity and Profiles
- Sign In and Registration
src/pages/Login.jsx - User Profile
src/pages/UserProfile.jsx
Agricultural Information
- Weather
src/pages/Weather.jsx - Market Prices
src/pages/MarketPrice.jsx - Crop Health
src/pages/Health.jsx - Crop Guide
src/pages/CropGuide.jsx - Government Schemes
src/pages/GovtSchemes.jsx - Assistant Chatbot
src/components/AssistantChatbot.jsx
Service Layer
- Authentication
src/services/authService.js - Marketplace Operations
src/services/marketplaceService.js - API Client
src/services/api.js - Weather Operations
src/services/weatherService.js - Chat Operations
src/services/chatService.js - Scheme Operations
src/services/schemeService.js
Other components
- Visitor or Farmer
- OpenWeatherMap
Connections 33
- Visitor or Farmer → React Entry: opens app
src/main.jsx - React Entry → Page Router: renders
src/main.jsx - Page Router → Home: routes to
src/App.jsx - Page Router → Marketplace Browse: routes to
src/App.jsx - Page Router → Product Detail: routes to
src/App.jsx - Page Router → Shop Detail: routes to
src/App.jsx - Page Router → Shopping Cart: routes to
src/App.jsx - Page Router → Seller Dashboard: routes to
src/App.jsx - Page Router → Farmer Dashboard: routes to
src/App.jsx - Page Router → Weather: routes to
src/App.jsx - Page Router → Market Prices: routes to
src/App.jsx - Page Router → Crop Health: routes to
src/App.jsx - Page Router → Crop Guide: routes to
src/App.jsx - Page Router → Government Schemes: routes to
src/App.jsx - Page Router → Sign In and Registration: routes to
src/App.jsx - Navigation → Marketplace Operations: loads cart count
src/components/Navbar.jsx - Marketplace Browse → Marketplace Operations: loads marketplace
src/pages/Marketplace.jsx - Product Detail → Marketplace Operations: loads product
src/pages/ProductDetail.jsx - Shop Detail → Marketplace Operations: loads shop products
src/pages/ShopDetail.jsx - Shopping Cart → Marketplace Operations: manages cart and orders
src/pages/ShoppingCart.jsx - Shopping Cart → Order Confirmation: navigates after order
src/pages/ShoppingCart.jsx - Seller Dashboard → Marketplace Operations: manages seller data
src/pages/SellerDashboard.jsx - Sign In and Registration → Authentication: authenticates
- Farmer Dashboard → Authentication: reads user identity
src/pages/FarmerDashboard.jsx - Marketplace Operations → API Client: uses API configuration
src/services/marketplaceService.js - Authentication → API Client: uses API configuration
src/services/authService.js - Weather → Weather Operations: requests forecasts
src/pages/Weather.jsx - Weather Operations → OpenWeatherMap: requests weather data
src/services/weatherService.js - Weather Operations → API Client: requests insights
src/services/weatherService.js - Assistant Chatbot → Chat Operations: sends chat requests
src/components/AssistantChatbot.jsx - Chat Operations → API Client: uses API client
src/services/chatService.js - Government Schemes → Scheme Operations: loads scheme data
src/pages/GovtSchemes.jsx - Scheme Operations → API Client: uses API client
src/services/schemeService.js