Skip to content

rutujapadar/herbTrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

HerbTrace - Blockchain Traceability Platform for Ayurvedic Herbs

HerbTrace Logo

React Vite TailwindCSS Redux Toolkit

๐ŸŒฟ About HerbTrace

HerbTrace is a comprehensive blockchain-powered traceability platform designed specifically for the Ayurvedic herb supply chain. It provides end-to-end transparency from herb collection in the Himalayas to retail distribution, ensuring authenticity, quality, and compliance with regulatory standards.

๐ŸŽฏ Mission

To revolutionize the Ayurvedic herb industry through blockchain technology, ensuring authentic, quality herbs reach consumers while supporting sustainable farming practices and empowering herb collectors.

โœจ Key Features

๐Ÿ” Multi-Role Authentication & Authorization

  • Herb Collectors - Record collections with GPS coordinates and quality grading
  • Supply Chain Managers - Track shipments and monitor logistics
  • Laboratory Personnel - Conduct quality testing and certification
  • Regulatory Officers - Ensure compliance and generate reports
  • Consumers - Verify product authenticity through QR codes

๐Ÿ“Š Real-Time Dashboards

  • Collector Dashboard - Track daily collections, earnings, and blockchain submissions
  • Supply Chain Tracking - Monitor herb journey with GPS and temperature sensors
  • Laboratory Interface - Manage testing queues and certification workflows
  • Regulatory Compliance - Automated compliance monitoring and reporting
  • Consumer Verification - Simple QR code scanning for product authentication

๐Ÿ”— Blockchain Integration

  • Immutable record of herb journey from collection to retail
  • Smart contracts for automated quality verification
  • Decentralized storage of certification data
  • Real-time blockchain status monitoring
  • Transaction hash verification for all records

๐Ÿ“ Advanced Tracking

  • GPS Coordinates - Precise collection location tracking
  • Temperature Monitoring - Cold chain compliance for sensitive herbs
  • Quality Grading - Scientific classification (A+, A, B+, etc.)
  • Batch Management - Comprehensive batch tracking system

๐Ÿ—๏ธ Architecture

Tech Stack

  • Frontend: React 18 with Vite for lightning-fast development
  • Styling: Tailwind CSS with custom design system
  • State Management: Redux Toolkit for predictable state management
  • Routing: React Router v6 for declarative navigation
  • Charts: Recharts & D3.js for data visualization
  • Icons: Lucide React for consistent iconography
  • Animations: Framer Motion for smooth interactions

Project Structure

herbtrace/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ””โ”€โ”€ ui/                    # Reusable UI components
โ”‚   โ”‚       โ”œโ”€โ”€ GlobalHeader.jsx   # Application header
โ”‚   โ”‚       โ”œโ”€โ”€ RoleBasedSidebar.jsx # Dynamic navigation
โ”‚   โ”‚       โ””โ”€โ”€ BlockchainStatusIndicator.jsx
โ”‚   โ”œโ”€โ”€ pages/
โ”‚   โ”‚   โ”œโ”€โ”€ collector-dashboard/           # Herb collector interface
โ”‚   โ”‚   โ”œโ”€โ”€ supply-chain-tracking-dashboard/ # Logistics tracking
โ”‚   โ”‚   โ”œโ”€โ”€ laboratory-testing-interface/   # Quality testing
โ”‚   โ”‚   โ”œโ”€โ”€ regulatory-compliance-dashboard/ # Compliance monitoring
โ”‚   โ”‚   โ”œโ”€โ”€ consumer-product-verification/   # Public verification
โ”‚   โ”‚   โ””โ”€โ”€ user-registration-login/        # Authentication
โ”‚   โ”œโ”€โ”€ App.jsx                    # Main application component
โ”‚   โ”œโ”€โ”€ Routes.jsx                 # Application routing configuration
โ”‚   โ””โ”€โ”€ styles/                    # Global styles and themes
โ”œโ”€โ”€ public/                        # Static assets
โ””โ”€โ”€ package.json                   # Dependencies and scripts

๐Ÿš€ Getting Started

Prerequisites

  • Node.js (v14.x or higher)
  • npm or yarn package manager
  • Modern web browser with JavaScript enabled

Installation

  1. Clone the repository

    git clone <repository-url>
    cd herbtrace
  2. Install dependencies

    npm install
    # or
    yarn install
  3. Set up environment variables

    cp .env.example .env
    # Configure your environment variables
  4. Start development server

    npm start
    # or
    yarn start
  5. Open your browser Navigate to http://localhost:3000

๐ŸŽฎ User Roles & Access

๐Ÿ‘ค Herb Collector

  • Dashboard: Track daily collections and earnings
  • New Collections: Record herb collections with location data
  • Blockchain Status: Monitor submission status and confirmations
  • Weather Widget: Get collection recommendations based on weather

Sample Credentials:

  • Username: collector@herbtrace.com
  • Default Route: /collector-dashboard

๐Ÿš› Supply Chain Manager

  • Shipment Tracking: Monitor active shipments with GPS
  • Timeline View: Visualize herb journey through supply chain
  • Temperature Monitoring: Ensure cold chain compliance
  • Batch Management: Track and manage herb batches

Default Route: /supply-chain-tracking-dashboard

๐Ÿ”ฌ Laboratory Personnel

  • Testing Queue: Manage incoming samples for quality testing
  • Equipment Status: Monitor laboratory equipment availability
  • Certification: Generate and manage quality certificates
  • Blockchain Integration: Submit test results to blockchain

Default Route: /laboratory-testing-interface

๐Ÿ“‹ Regulatory Officer

  • Compliance Monitoring: Track regulatory compliance across batches
  • Alert Management: Monitor and respond to compliance alerts
  • Report Generation: Generate comprehensive compliance reports
  • Export Data: Export compliance data for external audits

Default Route: /regulatory-compliance-dashboard

๐Ÿ›’ Consumer

  • QR Code Scanning: Verify product authenticity
  • Product History: View complete herb journey
  • Quality Certificates: Access laboratory test results
  • Feedback System: Provide feedback on products

Default Route: /consumer-product-verification

๐Ÿ”ง Development Scripts

# Start development server
npm start

# Build for production
npm run build

# Preview production build
npm run serve

# Run tests (if configured)
npm test

๐ŸŽจ Design System

HerbTrace uses a custom design system built on Tailwind CSS:

  • Colors: Earth-toned palette reflecting natural herb origins
  • Typography: Clean, readable fonts optimized for dashboard interfaces
  • Components: Consistent UI components with proper accessibility
  • Responsive: Mobile-first design supporting all device sizes
  • Animations: Subtle animations enhancing user experience

๐Ÿ”’ Security Features

  • Role-Based Access Control (RBAC): Strict access control per user type
  • Blockchain Verification: Cryptographic verification of all transactions
  • Data Encryption: Sensitive data encrypted at rest and in transit
  • Audit Trails: Comprehensive logging of all system actions
  • Input Validation: Robust validation preventing malicious inputs

๐Ÿ“ˆ Key Metrics Tracked

  • Collection Volume: Daily, weekly, and monthly herb collection volumes
  • Quality Scores: Average quality grades across different herb types
  • Supply Chain Efficiency: Time from collection to retail
  • Blockchain Confirmations: Transaction success rates and timing
  • Regulatory Compliance: Compliance percentage across all batches
  • Consumer Verification: QR code scan rates and verification success

๐ŸŒ Environmental Impact

HerbTrace promotes sustainable practices:

  • Carbon Footprint Tracking: Monitor transportation emissions
  • Sustainable Collection: Promote responsible harvesting practices
  • Seasonal Reminders: Educate collectors about optimal collection times
  • Conservation Alerts: Warn about over-harvesting risks

๐Ÿค Contributing

We welcome contributions to HerbTrace! Please follow these guidelines:

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

Code Style

  • Use ESLint and Prettier for code formatting
  • Follow React functional component patterns
  • Implement proper error handling with optional chaining
  • Maintain responsive design principles

๐Ÿ“„ License

This project is proprietary software developed for the Ayurvedic herb traceability industry.

๐Ÿ™ Acknowledgments

  • Herb Collectors: Hardworking collectors in the Himalayan regions
  • Ayurvedic Community: Traditional knowledge keepers and practitioners
  • Blockchain Community: Open-source tools and protocols
  • React Ecosystem: Amazing libraries and tools that power this platform

Built with โค๏ธ for the Ayurvedic herb community

Ensuring authentic herbs from the Himalayas to your home

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages