Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ This Code of Conduct is adapted from the [Contributor Covenant (v3.0)](https://w

---

**Thank you for being a part of AgriTech. By upholding this Code of Conduct, we create a respectful and empowering space where contributors at all levels can make a lasting impact.**
**Thank you for being a part of AgriTech. By upholding this Code of Conduct, we create a respectful and empowering space where contributors at all levels can make a lasting impact.**
48 changes: 4 additions & 44 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# MIT License
MIT License

Copyright (c) 2026 AgriTech

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the Software), to deal
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
Expand All @@ -12,50 +12,10 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM,
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---

# AgriTech Open Source License Notice

AgriTech is an open-source platform focused on empowering smart and sustainable agriculture through technology-driven solutions.

This project includes features such as:

- Crop Recommendation
- Disease Detection
- Soil Classification
- Fertilizer Recommendation
- Crop Yield Prediction
- Government Scheme Assistance
- Community Support Tools
- Smart Farming Utilities

We welcome contributions from developers, designers, researchers, and open-source enthusiasts.

By contributing to this repository, you agree that your contributions will be licensed under the same MIT License.

---

## Contribution Guidelines

Before contributing, please read:

- `README.md`
- `CONTRIBUTING.md`
- `CODE_OF_CONDUCT.md`

---

## Contact

For queries or collaboration:

GitHub Repository:
https://github.com/omroy07/AgriTech
37 changes: 5 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,36 +133,31 @@ Note: Backend and frontend must be running simultaneously for proper functionali
## 🌟 Core Features

- 🌾 Crop Recommendation
- 🌿 Fertilizer Recommendation
- 📉 Yield Prediction
- 🔬 Disease Detection
- � **AI Chatbot** - Platform guidance & agriculture support
- �🤝 Farmer Community
- 🛒 Shopkeeper Listings

---

## 🤖 AI Chatbot

AgriTech's AI-powered chatbot provides comprehensive support for farmers:

### Features

- **Platform Guidance**: Explains how to use all AgriTech features and tools
- **Agriculture Support**: Answers farming questions, crop recommendations, pest control
- **Decision Making**: Provides region-specific, season-based farming advice
- **Image Analysis**: Upload plant photos for disease detection and diagnosis
- **24/7 Support**: Always available for instant farming assistance

### Technical Implementation

- **Dual Mode**: AI-powered (Google Gemini) + Rule-based fallback
- **Smart Matching**: Fuzzy search with keyword analysis for accurate responses
- **Offline Capability**: Works without internet using JSON-based responses
- **Image Processing**: Analyzes plant photos for disease identification

### Usage

```bash
# Start the chatbot server
npm install
Expand All @@ -172,11 +167,9 @@ node server.js
```

### API Endpoints

- `POST /api/chat` - Send messages and images for AI analysis

---

## 🛠️ Tech Stack

### 🎨 Frontend
Expand Down Expand Up @@ -227,7 +220,6 @@ AGRITECH/
│ ├── 📁 css/ # Stylesheets
│ └── 📁 js/ # Client-side scripts
├── 📁 Crop Recommendation/ # 🌾 Crop recommendation module
├── 📁 Fertiliser Recommendation System/ # 🌿 Fertilizer recommendation ML module
├── 📁 Disease Prediction/ # 🔬 Disease detection module
├── 📁 Crop Yield Prediction/ # 📊 Yield forecasting module
├── 📁 Community/ # 💬 community/forum backend
Expand Down Expand Up @@ -269,24 +261,6 @@ FIREBASE_MEASUREMENT_ID=your_measurement_id

---

## 🔐 Registration Validation Rules

To maintain clean user data and enforce business policies, AgriTech now applies strict
validation whenever a new account is created (frontend **and** backend):

- **Full Name / Username:** only alphabetic characters and spaces are allowed. The
same rule is enforced in the database model, API routes, and client-side form.
- **Email:** registrations are limited to `@gmail.com` addresses. Non‑Gmail domains
are rejected both on the client and by API endpoints.

Error messages are shown immediately on the form and the backend returns a descriptive
400 response when validation fails. Automated tests cover both model‑level and
endpoint behavior.

---

---

## 🛣️ Roadmap

- Cloud Deployment
Expand All @@ -309,10 +283,10 @@ Read **[CONTRIBUTING.md](CONTRIBUTING.md)** for SWoC 2026 guidelines.

## 👥 Team

| Name | Role |
| ------------- | ----------------------- |
| Om Roy | Project Lead · Web · ML |
| Shubhangi Roy | ML · Backend |
| Name | Role |
| ----------------------- | ----------------------- |
| Om Roy | Project Lead · Web · ML |
| Shubhangi Roy | ML · Backend |

---

Expand Down Expand Up @@ -360,7 +334,6 @@ Found a bug or want a new feature? [Open an issue](https://github.com/omroy07/Ag
This project is licensed under the [MIT License](LICENSE).

---

## 🛠️ Common Issues & Fixes

- ❌ **ModuleNotFoundError**
Expand Down Expand Up @@ -394,4 +367,4 @@ A: Ensure the backend server is running correctly and that the /health route is

---

**Made with ❤️ by the AgriTech Community — Nexus Spring Of Code 2026**
**Made with ❤️ by the AgriTech Community — SWoC 2026**
Loading
Loading