Skip to content

JenilSavalia/Team_35-AgriAuthentic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

109 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌾 AgriAuthentic

Consumer Dashboard Frontend :- https://agriauthenti-consumer.onrender.com

Empowering Trust in Agriculture Through IOT-Verified Transparency

Table of Contents


🌟 Overview

AgriAuthentic is a comprehensive agricultural transparency platform that bridges the gap between farmers and consumers. By leveraging QR code technology and real-time verification systems, we enable consumers to trace their produce back to its authentic source, ensuring trust, quality, and sustainability in the agricultural supply chain.

Our platform provides farmers with tools to showcase their authentic farming practices while giving consumers complete visibility into product lifecycle, farmer credentials, and sustainable farming methods.


🎯 Problem Statement

In today's agricultural marketplace, consumers face several critical challenges:

  • Lack of Transparency: No visibility into product origin and farming practices
  • Trust Issues: Difficulty verifying if farmers follow sustainable/organic methods
  • Information Gap: Limited access to farmer credentials and product lifecycle data
  • Counterfeit Products: Risk of purchasing non-authentic agricultural products
  • Complex Supply Chain: Multiple intermediaries obscure the farm-to-consumer journey

πŸ’‘ Solution

AgriAuthentic addresses these challenges through a multi-dashboard platform:

For Farmers

  • Digital Profile Management: Showcase farming credentials and certifications
  • Product Lifecycle Tracking: Document each stage from seed to harvest
  • QR Code Generation: Create unique identifiers for each product batch
  • Dashboard Analytics: Monitor product distribution and consumer engagement

For Consumers

  • QR Code Scanning: Instant access to product and farmer information
  • Verification Dashboard: View complete product lifecycle and authenticity
  • Farmer Profile Access: See credentials, farming methods, and certifications
  • AI-Powered Assistance: Get instant answers about products and farming practices

For Verification

  • Certification Dashboard: Validate farmer credentials and product authenticity
  • Real-time Data: Access comprehensive farming and product data
  • Transparency Reports: Generate detailed verification reports

✨ Key Features

πŸ” QR-Based Product Verification

  • Scan QR codes pre or post-purchase
  • Instant access to complete product information
  • View full product lifecycle from planting to harvest
  • Verify farmer authenticity and credentials

πŸ‘¨β€πŸŒΎ Farmer Dashboard

  • Comprehensive profile management
  • Product registration and tracking
  • Batch-wise QR code generation
  • Integration with backend APIs for real-time updates
  • Analytics and insights

πŸ›’ Consumer Dashboard

  • User-friendly interface for product scanning
  • Detailed product history and origin information
  • Farmer credential verification
  • Purchase history and saved products
  • Educational content about sustainable farming

πŸ€– AI-Powered Chatbot

  • 24/7 customer support
  • Answer queries about products, farmers, and farming practices
  • Provide recommendations based on preferences
  • Multi-language support

βœ… Certification Dashboard

  • Verify farmer credentials and certifications
  • Access comprehensive farmer profiles
  • View real-time farming data
  • Generate authenticity certificates
  • Track sustainable farming practices

πŸ› οΈ Technology Stack

Frontend

  • React.js - Component-based UI development
  • Vite - Fast build tool and development server
  • Tailwind CSS - Utility-first CSS framework
  • JavaScript/TypeScript - Core programming languages

Backend

  • Python - Primary backend language
  • Flask/FastAPI - RESTful API framework
  • Database Integration - Complete CRUD operations
  • API Architecture - Scalable and secure endpoints

Additional Technologies

  • QR Code Generation & Scanning
  • AI/ML Models - Chatbot integration
  • Database - (MongoDB/PostgreSQL/MySQL)
  • Cloud Storage - Product images and documents

πŸ“ Project Structure

Team_35-AgriAuthentic/
β”‚
β”œβ”€β”€ Farmer Dashboard/          # Farmer-facing dashboard
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ public/
β”‚   └── package.json
β”‚
β”œβ”€β”€ Consumer/                  # Consumer-facing application
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ public/
β”‚   └── package.json
β”‚
β”œβ”€β”€ Verification/vite-project/ # Certification & verification dashboard
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ public/
β”‚   └── package.json
β”‚
β”œβ”€β”€ Backend/                   # Python backend APIs
β”‚   β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ database/
β”‚   └── requirements.txt
β”‚
β”œβ”€β”€ AiChatBot/                # AI chatbot implementation
β”‚   β”œβ”€β”€ model/
β”‚   β”œβ”€β”€ training/
β”‚   └── integration/
β”‚
β”œβ”€β”€ Designs/                  # UI/UX design files
β”‚   └── mockups/
β”‚
└── README.md

πŸš€ Installation & Setup

Prerequisites

  • Node.js (v16 or higher)
  • Python (v3.8 or higher)
  • npm or yarn
  • pip (Python package manager)

Backend Setup

# Navigate to backend directory
cd Backend

# Create virtual environment
python -m venv venv

# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Edit .env with your configuration

# Run database migrations
python manage.py migrate

# Start the backend server
python app.py

Farmer Dashboard Setup

# Navigate to Farmer Dashboard
cd "Farmer Dashboard"

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Add backend API URL

# Start development server
npm run dev

Consumer Dashboard Setup

# Navigate to Consumer directory
cd Consumer

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env

# Start development server
npm run dev

Verification Dashboard Setup

# Navigate to Verification directory
cd Verification/vite-project

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env

# Start development server
npm run dev

AI Chatbot Setup

# Navigate to AiChatBot directory
cd AiChatBot

# Install dependencies
pip install -r requirements.txt

# Configure chatbot settings
# Edit config.py with your AI model credentials

# Run chatbot service
python chatbot.py

πŸ”„ How It Works

For Farmers

  1. Registration: Create an account with farming credentials
  2. Profile Setup: Add certifications, farming methods, and location
  3. Product Registration: Register products with details and lifecycle information
  4. QR Generation: Generate unique QR codes for product batches
  5. Distribution: Attach QR codes to products for consumer scanning

For Consumers

  1. Scan QR Code: Use mobile device to scan product QR code
  2. View Details: Access complete product information instantly
  3. Verify Authenticity: Check farmer credentials and farming practices
  4. Product Lifecycle: View journey from seed to shelf
  5. Make Informed Decision: Purchase with confidence and transparency

For Verifiers

  1. Access Dashboard: Log into certification dashboard
  2. Scan/Enter Code: Input product QR code or farmer ID
  3. Review Data: Access comprehensive farming and product data
  4. Verify Credentials: Confirm certifications and practices
  5. Generate Report: Create verification certificates

πŸ‘₯ Team Members

πŸ† Team 35 - AgriAuthentic

Name Role Responsibilities
Jatan Mathasoliya Team Leader & Frontend Developer β€’ Lead project development and coordination
β€’ Farmer Dashboard development
β€’ Backend integration with Python APIs
β€’ Frontend-Backend connectivity
β€’ Technical guidance and architecture decisions
Jenil Savaliya Frontend Developer β€’ Consumer Dashboard development
β€’ UI/UX implementation
β€’ Backend integration support
β€’ Component development and optimization
Krutagya Kaneria Backend Developer β€’ Complete backend architecture
β€’ API development and integration
β€’ Database design and management
β€’ CRUD operations implementation
β€’ Backend optimization and security
Homasvi Kaneria AI Developer & Frontend Developer β€’ AI Chatbot integration and training
β€’ Certification Dashboard development
β€’ Natural language processing implementation
β€’ Chatbot-backend connectivity

🎨 Design Philosophy

Our design focuses on:

  • Simplicity: Easy-to-use interfaces for farmers with varying technical skills
  • Transparency: Clear visualization of product lifecycle and farmer data
  • Trust: Professional design that builds confidence in the platform
  • Accessibility: Mobile-responsive design for scanning QR codes on-the-go
  • Performance: Fast loading times and smooth interactions

πŸ” Security & Privacy

  • Data Encryption: All sensitive data encrypted in transit and at rest
  • Authentication: Secure login systems for all user types
  • Privacy Controls: Farmers control what information is shared publicly
  • QR Code Security: Unique, tamper-proof QR codes for each product batch
  • Regular Audits: Continuous security monitoring and updates

🌱 Future Enhancements

  • Blockchain integration for immutable record-keeping
  • IoT sensor integration for real-time farming data
  • Multi-language support for broader accessibility
  • Mobile applications for iOS and Android
  • Advanced analytics dashboard for farmers
  • Community marketplace integration
  • Sustainability scoring system
  • Integration with government agricultural databases

πŸ“Š API Documentation

Base URL

http://localhost:5000/api/v1

Key Endpoints

Farmer APIs

POST   /farmers/register       - Register new farmer
GET    /farmers/:id            - Get farmer profile
PUT    /farmers/:id            - Update farmer profile
POST   /farmers/products       - Add new product
GET    /farmers/products/:id   - Get product details

Consumer APIs

GET    /products/verify/:qr    - Verify product by QR code
GET    /products/:id           - Get product details
GET    /farmers/public/:id     - Get public farmer profile

Verification APIs

POST   /verify/farmer          - Verify farmer credentials
POST   /verify/product         - Verify product authenticity
GET    /certificates/:id       - Get certificate details

🀝 Contributing

We welcome contributions to AgriAuthentic! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Guidelines

  • Follow existing code style and conventions
  • Write clear commit messages
  • Add comments for complex logic
  • Test thoroughly before submitting PR
  • Update documentation as needed

πŸ“„ License

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


πŸ“ž Contact & Support

For questions, suggestions, or support:


πŸ™ Acknowledgments

  • Thanks to all team members for their dedication and hard work
  • Appreciation for the hackathon organizers
  • Gratitude to the farming community for their valuable feedback
  • Thanks to open-source libraries and frameworks that made this possible

Built with ❀️ by Team 35

Jay HariKrushna Maharaj πŸ™

⭐ Star this repo | πŸ› Report Bug | ✨ Request Feature

About

AgriAuthentic is a comprehensive agricultural transparency platform that bridges the gap between farmers and consumers. By leveraging QR code technology and real-time verification systems, we enable consumers to trace their produce back to its authentic source

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors