tidal-agriculture

bySaniha

Build me project for Title: Agriculture Market Price Information System Develop a full-stack DBMS-based web application called "Agriculture Market Price Information System" using HTML, CSS (frontend), Python Flask (backend), and MySQL (database). The system should include the following features: 1. Database Design: * Create a MySQL database with tables: * crops (crop_id, crop_name) * markets (market_id, market_name, location) * prices (price_id, crop_id, market_id, price, date) * admin (id, username, password) * Use primary keys and foreign keys to maintain relationships. 2. User Module: * Provide a user-friendly homepage. * Allow users to select crops using a dropdown list. * Display market prices based on selected crop. * Show results in a tabular format. * Include filters such as market name and date (optional). 3. Admin Module: * Implement secure admin login system. * Create a dashboard for admin. * Allow admin to insert new crop prices into database. * Automatically store current date using system date. 4. Data Visualization: * Display price trends using graphs (Chart.js). * Show price vs date for better analysis. 5. Real-Time Simulation: * Implement a scheduler in Python that automatically inserts price data at regular intervals (simulating real-time updates). 6. Additional Features: * Highlight high prices using conditional formatting. * Make UI simple and responsive. * Use SQL joins to fetch combined data from multiple tables. 7. Backend Requirements: * Use Flask framework. * Handle routes for homepage, admin login, dashboard, and price search. * Connect Python with MySQL using mysql-connector. 8. Frontend Requirements: * Use HTML and basic CSS. * Create forms for user input and admin login. * Display data dynamically using templates. 9. Optional Enhancements: * Add price alerts. * Add filtering by date range. * Implement indexing for faster queries. The system should demonstrate proper use of DBMS concepts such as normalization, relationships, joins, indexing, and real-time data handling.

HomeSchedulerLoginPrice TrendsDashboardCrop PricesProfileSettingsMarket PricesRecommendationsReportsActivity Logs
Home

Comments (0)

No comments yet. Be the first!

Project Tasks23

#1

Implement Theme and Structure

To Do

As a user, I want the application to visually match the mock-design pages exactly. This task involves applying the color palette (#F4F1E6 background, #FF7F50 accent, #2E3A3F text, #A9B9A7 muted tones), typography, layout structure, and the 🌾 ಕೃಷಿ ಸ್ಪಂದನ branding across all pages. Remove any pages not present in the design spec. Ensure responsive layout and consistent component styling (navbar, sidebar, cards, buttons) across the entire application based on the existing JSX design files.

AI 85%
Human 15%
High Priority
2 days
Frontend Developer
#2

Build Home Page

To Do

As a user, I want to view an interactive agricultural landscape on the Home page with animated crop hotspots, region selection, and quick summaries. Implement the Home (v4) JSX design including the collapsible sidebar for filters (crop type, region, date range), animated hotspots, real-time price change animations, and navigation to Market Prices page. This is the landing page for Farmers, Traders, and Researchers.

Depends on:#1
Waiting for dependencies
AI 90%
Human 10%
High Priority
2 days
Frontend Developer
#3

Build Login Page

To Do

As an admin, I want to securely log in to the system via the Login page. Implement the Login (v3) JSX design with a secure authentication form, 🌾 ಕೃಷಿ ಸ್ಪಂದನ branding, and navigation to the Admin Dashboard on success. Ensure validation and error state handling.

Depends on:#1
Waiting for dependencies
AI 90%
Human 10%
High Priority
1 day
Frontend Developer
#4

Build Dashboard Page

To Do

As an admin, I want to view an overview dashboard after login to access Manage Crop Prices, View Activity Logs, and Configure Scheduler. Implement the Dashboard (v2) JSX design showing system statistics, navigation links to all admin sub-sections, and a summary panel for recent activity.

Depends on:#3#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
2 days
Frontend Developer
#5

Build Market Prices Page

To Do

As a user (farmer, trader, researcher), I want to select a crop from a dropdown and filter results by market name and date to view current market prices in a tabular format. Implement the Market Prices (v2) JSX design with crop dropdown, market and date filters, price table with conditional formatting for high prices, and navigation to Price Trends page.

Depends on:#2#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
2 days
Frontend Developer
#14

Build Profile Page

To Do

As a farmer, I want to set my preferences (region, preferred crops, language) on my Profile page. Implement the Profile (v2) JSX design with user preference form, regional language selector, notification settings, and navigation back to Home.

Depends on:#1#2
Waiting for dependencies
AI 85%
Human 15%
Medium Priority
1 day
Frontend Developer
#6

Build Price Trends Page

To Do

As a user, I want to view graphical trends of crop prices over time and compare markets. Implement the Price Trends (v2) JSX design using Chart.js with price vs date graphs, historical trend analysis, market comparison view, and navigation to Forecasting page. Support date range filtering for researchers.

Depends on:#1#5
Waiting for dependencies
AI 87%
Human 13%
High Priority
2 days
Frontend Developer
#10

Build Crop Prices Page

To Do

As an admin, I want to manage crop price records by inserting new prices and viewing existing price records. Implement the Crop Prices (v2) JSX design with a data entry form for new prices (crop, market, price, auto-date), a paginated price records table, and navigation back to the Dashboard.

Depends on:#1#4
Waiting for dependencies
AI 88%
Human 12%
High Priority
1.5 days
Frontend Developer
#11

Build Activity Logs Page

To Do

As an admin, I want to view and filter user activity logs to monitor platform usage. Implement the Activity Logs (v3) JSX design with a filterable log table, date range and user type filters, log detail view, and navigation back to Dashboard.

Depends on:#4#1
Waiting for dependencies
AI 87%
Human 13%
Medium Priority
1.5 days
Frontend Developer
#12

Build Scheduler Page

To Do

As an admin, I want to configure and set intervals for automatic crop price updates. Implement the Scheduler (v2) JSX design with interval configuration controls, schedule status display, start/stop scheduler actions, and navigation to Settings page.

Depends on:#4#1
Waiting for dependencies
AI 85%
Human 15%
Medium Priority
1.5 days
Frontend Developer
#15

Implement Market Prices API

To Do

As a user, I want the backend to serve crop price data filtered by crop, market, and date. Implement Flask API endpoints: GET /api/prices (with query params for crop_id, market_id, date), using SQL joins across crops, markets, and prices tables with MySQL connector. Support pagination and conditional formatting data for high prices.

Depends on:#5
Waiting for dependencies
AI 80%
Human 20%
High Priority
2 days
Backend Developer
#23

Implement Profile Preferences API

To Do

As a farmer, I want to save and retrieve my preferences (region, crops, language) via backend APIs. Implement Flask endpoints: GET /api/profile, PUT /api/profile (update preferences including region, preferred_crops, language). Store preferences in user profile table and apply localization settings.

Depends on:#14
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
1 day
Backend Developer
#7

Build Recommendations Page

To Do

As a user (farmer, trader, researcher), I want to view crop recommendations and insights based on historical data and market trends. Implement the Recommendations (v2) JSX design showing suggested profitable crops, reasoning (e.g. '20% price increase over 3 months'), analytics view for researchers, and navigation to Forecasting page.

Depends on:#1#6
Waiting for dependencies
AI 88%
Human 12%
High Priority
2 days
Frontend Developer
#13

Build Settings Page

To Do

As an admin, I want to configure system-level settings after scheduler setup. Implement the Settings (v2) JSX design with system configuration panels, localization settings (regional language support), and accessibility options. Navigation flows from Scheduler page.

Depends on:#1#12
Waiting for dependencies
AI 85%
Human 15%
Medium Priority
1 day
Frontend Developer
#16

Implement Price Trends API

To Do

As a user, I want the backend to provide historical price trend data for Chart.js graphs. Implement Flask API endpoints: GET /api/trends (with crop_id, market_id, date_range params) returning time-series data for price vs date visualization and market comparison.

Depends on:#6
Waiting for dependencies
AI 80%
Human 20%
High Priority
1.5 days
Backend Developer
#17

Implement Crop Prices Admin API

To Do

As an admin, I want backend APIs to insert and retrieve crop price records. Implement Flask endpoints: POST /api/admin/prices (insert new price with auto system date), GET /api/admin/prices (list all price records with pagination). Secure endpoints with admin session authentication.

Depends on:#10
Waiting for dependencies
AI 80%
Human 20%
High Priority
1.5 days
Backend Developer
#18

Implement Activity Logs API

To Do

As an admin, I want backend APIs to fetch and filter user activity logs. Implement Flask endpoints: GET /api/admin/logs (with filter params for user_type, date_range, action_type). Log user actions (price queries, downloads, logins) automatically via middleware.

Depends on:#11
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
1.5 days
Backend Developer
#19

Implement Scheduler Backend Service

To Do

As an admin, I want a Python scheduler service that automatically inserts simulated crop price data at configurable intervals. Implement APScheduler or Celery-based scheduler with Flask endpoints: POST /api/admin/scheduler/start, POST /api/admin/scheduler/stop, PUT /api/admin/scheduler/interval. Persist scheduler config in database.

Depends on:#12
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
2 days
Backend Developer
#8

Build Forecasting Page

To Do

As a user, I want to view market demand forecasts and explore model insights for selected crops with selectable timeframes (next week, next month). Implement the Forecasting (v1) JSX design with forecast graphs, timeframe selector, model insights panel, and navigation to Reports page. Display expected price change indicators.

Depends on:#7#1
Waiting for dependencies
AI 87%
Human 13%
High Priority
2 days
Frontend Developer
#20

Implement Recommendation Engine

To Do

As a user, I want an AI-powered crop recommendation engine that suggests profitable crops based on historical price trends. Integrate GPT and Gemini via LiteLLM and Langchain for user-friendly recommendation responses. Implement Flask endpoint: GET /api/recommendations (with user_region, crop_preferences params). Use scikit-learn for rule-based filtering and LLM for natural language insights.

Depends on:#16#7
Waiting for dependencies
AI 85%
Human 15%
High Priority
3 days
AI Engineer
#9

Build Reports Page

To Do

As a researcher or trader, I want to download detailed reports of price trends and forecasts. Implement the Reports (v2) JSX design with report generation options, date range selection, format options (Excel/PDF), and download functionality. Navigation flows from Forecasting page.

Depends on:#1#8
Waiting for dependencies
AI 85%
Human 15%
Medium Priority
1.5 days
Frontend Developer
#21

Implement Demand Forecasting Engine

To Do

As a user, I want ML-based market demand forecasting for selected crops with selectable timeframes. Implement ARIMA/LSTM models using statsmodels or TensorFlow/Keras for time-series price forecasting. Integrate with Langchain and LiteLLM for model insights narrative. Flask endpoint: GET /api/forecast (with crop_id, market_id, timeframe params). Return forecast values and confidence intervals for Chart.js visualization.

Depends on:#16#8
Waiting for dependencies
AI 82%
Human 18%
High Priority
3 days
AI Engineer
#22

Implement Reports Generation API

To Do

As a researcher or trader, I want to download price trend and forecast reports in Excel or PDF format. Implement Flask endpoint: POST /api/reports/generate (with report_type, date_range, crop_id, format params). Use libraries like openpyxl for Excel and ReportLab/WeasyPrint for PDF. Stream file download response.

Depends on:#9#16
Waiting for dependencies
AI 78%
Human 22%
Medium Priority
2 days
Backend Developer
Home design preview
Login: Sign In
Dashboard: View Overview
Dashboard: Manage Crop Prices
Crop Prices: Insert New Price
Crop Prices: View Price Records
Dashboard: View Activity Logs
Activity Logs: Filter Logs
Scheduler: Configure Updates
Scheduler: Set Interval
Settings: Configure System