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.
⭐VISIT: AgroSphere Website Homepage
⭐ 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.
- 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)
-
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.
-
Install dependencies:
npm install
node server.js
The server will be running at http://localhost:5000.
- 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
- Basic CRUD operations for farm data.
- MongoDB integration for data storage.
- CORS support for cross-origin requests.
- Minimalistic structure for easy expansion.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes and push to your branch.
- Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.