{"id":20218191,"url":"https://github.com/ishaj72/cropdata","last_synced_at":"2026-04-12T14:48:27.778Z","repository":{"id":246571242,"uuid":"821474490","full_name":"ishaj72/CropData","owner":"ishaj72","description":"A Web application for analyzing and showing agricultural production data","archived":false,"fork":false,"pushed_at":"2024-07-04T12:59:29.000Z","size":49657,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T22:27:13.374Z","etag":null,"topics":["axios-react","cors-proxy","flask","ml","pandas","reactjs"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ishaj72.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-28T16:10:32.000Z","updated_at":"2024-07-04T12:59:33.000Z","dependencies_parsed_at":"2024-06-28T19:35:37.349Z","dependency_job_id":null,"html_url":"https://github.com/ishaj72/CropData","commit_stats":null,"previous_names":["ishaj72/cropdata"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishaj72%2FCropData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishaj72%2FCropData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishaj72%2FCropData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishaj72%2FCropData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ishaj72","download_url":"https://codeload.github.com/ishaj72/CropData/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241655177,"owners_count":19998000,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios-react","cors-proxy","flask","ml","pandas","reactjs"],"created_at":"2024-11-14T06:37:32.563Z","updated_at":"2025-12-31T01:04:26.981Z","avatar_url":"https://github.com/ishaj72.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CROP DATA React + Flask\r\n\r\nA Web application for analyzing and showing agricultural production data in India.\u003cbr/\u003e\r\n\r\n## Table of Contents\r\n\r\n- [Introduction](#introduction)\r\n- [Installation](#installation)\r\n  - [Steps](#steps)\r\n  - [OtherRequirment](#OtherRequirments) \r\n- [Components](#components)\r\n- [Images](#images)\r\n\r\n## Introduction\r\nThe two tables provides yearly insights into maximum and minimum crop productions and details of average crop yields and cultivation areas across different crops.\u003cbr/\u003e\r\n- frontend technologies: React , AXIOS\u003cbr/\u003e\r\n- backend technologies: Flask, Pandas, Flask CORS\u003cbr/\u003e\r\n\r\n## Installation\r\n\r\n### Steps\r\n\u003cp\u003eInitial Steps\u003c/p\u003e\r\n\u003cul\u003e\r\n\u003cli\u003eClone the github repository : git clone https://github.com/ishaj72/CropData.git\u003c/li\u003e\r\n\u003cli\u003eNavigate to the project : cd CropData\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\r\n\u003cp\u003eFor frontend\u003c/p\u003e\r\n\u003cul\u003e\r\n\u003cli\u003eInstall frontend dependencies \u003cbr/\u003e -cd client \u003cbr/\u003e -npm install  \u003cbr/\u003e -npx create-react-app  \u003cbr/\u003e -npm install axois \u003c/li\u003e\r\n\u003cli\u003eStart your project : npm start\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\r\n\u003cp\u003eFor backend\u003c/p\u003e\r\n\u003cul\u003e\r\n\u003cli\u003eInstall backend dependencies \u003cbr/\u003e -cd flask-server \u003cbr/\u003e -python -m venv venv(create virtual environment)  \u003cbr/\u003e - .\\venv\\Scripts\\Activate(activate the server)   \u003cbr/\u003e -pip install flask \u003c/li\u003e\r\n\u003cli\u003eStart your project : python server.py\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\r\n### Prerequisites\r\n- To install pandas \r\n\u003cul\u003e \r\n\u003cli\u003epython -m pip install --upgrade pip\u003c/li\u003e\r\n\u003cli\u003epython -m pip install numpy pandas --user\u003c/li\u003e\r\n\u003c/ul\u003e \r\n\r\n- To install cors\r\n\u003cul\u003e \r\n\u003cli\u003epython -m pip install flask-cors\u003c/li\u003e\r\n\u003c/ul\u003e \r\n\r\n## Components\r\n### Backend \r\nImplemented in Python, the Flask application loads agricultural production data from CSV files, processes it to compute metrics such as maximum and minimum crop productions per year, and calculates average yields and cultivation areas for different crops. The processed data is exposed through RESTful APIs.\u003cbr/\u003e\r\n- Open browser through : http://localhost:5000/api/tables\r\n\r\n### Frontend\r\nBuilt with React.js, the frontend fetches data from the Flask backend and dynamically renders two tables:\u003cbr/\u003e\r\nTable 1: Displays the maximum and minimum production crops per year.\u003cbr/\u003e\r\nTable 2: Shows the average yield and cultivation area for various crops.\u003cbr/\u003e\r\n- Open browser through: http://localhost:3000/\r\n\r\n## Images\r\n- Table 1\r\n\u003cimg src=\"assets\\table1.png\" alt=\"table 1\" width=\"200\" height=\"150\"\u003e\r\n\r\n- Table 2\r\n\u003cimg src=\"assets\\taable2.png\" alt=\"atable 2\" width=\"200\" height=\"150\"\u003e\r\n\r\n- React Page\r\n\u003cimg src=\"assets\\crop1.png\" alt=\"atable 2\" width=\"200\" height=\"150\"\u003e\r\n\u003cimg src=\"assets\\crop2.png\" alt=\"atable 2\" width=\"200\" height=\"150\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishaj72%2Fcropdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishaj72%2Fcropdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishaj72%2Fcropdata/lists"}