Skip to content

realsubhamsahoo/AgroSphere-AgriTech-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 AgroSphere Project

AgroSphere is a sustainable agricultural development project for Hackathon that aims to monitor and manage farm data in India. This backend repository contains the server-side code for handling farm data using Node.js, Express, and MongoDB.

Table of Contents

Getting Started

Problem Statement

⭐ AgroSphere aims to revolutionize Indian agriculture by providing a comprehensive data-driven solution. Our project leverages sustainability, open innovation, and advanced technology to monitor and enhance the quality of agriculture in India. It offers real-time insights into climate, monsoon, soil health, groundwater, and pollution levels, making this data accessible to the public.

Feature or Solutions

  • AgroSphere - provides comprehensive farming data.
  • AgriSense - Implement IoT devices and sensors to monitor soil health, groundwater levels, climate conditions, and pollution in real-time.
  • Develop algorithms to assess the quality of agriculture practices and provide feedback to farmers.
  • Integrate sustainable farming practices and certifications.
  • Create an open API to encourage third-party developers and innovators to contribute to the platform.
  • Tech Stack Used: MERN (MongoDB, ExpressJS, React, NodeJs)

Prerequisites

  • Node.js installed on your machine
  • MongoDB installed and running locally or on a remote server

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/AgroSphere-AgriTech-Project.git
    cd AgroSphere-AgriTech-Project

    Replace "your-username" with your actual github username.

  2. Install dependencies:

npm install

Usage

Running the Server

node server.js

The server will be running at http://localhost:5000.

API Endpoints

  • GET /api/farmData: Get all farm data entries.
  • POST /api/farmData/add: Add a new farm data entry.
  • GET /api/farmData/:id: Get a specific farm data entry by ID.
  • POST /api/farmData/update/:id: Update a farm data entry by ID.
  • DELETE /api/farmData/delete/:id: Delete a farm data entry by ID.

Example API request using cURL:

curl -X GET http://localhost:5000/api/farmData

Features

  • Basic CRUD operations for farm data.
  • MongoDB integration for data storage.
  • CORS support for cross-origin requests.
  • Minimalistic structure for easy expansion.

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes and push to your branch.
  4. Submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

No releases published

Packages

No packages published