Skip to content

Ayushpremrocks/Organic-Connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 Organic Connect

React Vite TailwindCSS License: MIT

Organic Connect is a modern web platform that bridges the gap between verified organic farmers and health-conscious consumers. Our mission is to promote transparency, education, and sustainable agriculture while fostering a community around genuine organic produce.

🌿 Features

For Consumers

  • πŸ›’ Marketplace: Browse and discover verified organic farmers
  • πŸ” Smart Search: Filter farmers by location, crop type, and certifications
  • ⭐ Reviews & Ratings: Read and write reviews for farmers
  • πŸ’š Wishlist: Save favorite farmers and products
  • πŸ›’ Shopping Cart: Add products and manage orders
  • πŸ“± WhatsApp Integration: Direct communication with farmers
  • πŸ“¦ Order Tracking: Track order history and status
  • πŸ† Certification Verification: View organic certifications

For Farmers

  • πŸ“ Easy Onboarding: Simple registration process with photo uploads
  • πŸ“‹ Dashboard: Manage orders and track business
  • βœ… Certification Display: Showcase organic certifications
  • πŸ“Š Analytics: View customer interactions and reviews
  • ✏️ Profile Management: Edit product listings and information

For Administrators

  • πŸ“Š Admin Dashboard: Comprehensive platform analytics
  • πŸ“¦ Order Management: Oversee all platform orders
  • πŸ‘₯ User Management: Monitor farmers and consumers
  • ⭐ Review Moderation: Manage platform reviews

Educational Features

  • πŸ“š Learning Hub: Multi-language organic farming education
  • 🌍 Internationalization: Support for English, Hindi, Punjabi, and Marathi
  • πŸ“– Best Practices: Guidelines for organic farming techniques

πŸš€ Quick Start

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn package manager

Installation

  1. Clone the repository

    git clone https://github.com/Ayushpremrocks/Organic-Connect.git
    cd Organic-Connect
  2. Install dependencies

    npm install
  3. Set up environment variables Create a .env file in the root directory:

    VITE_EMAILJS_SERVICE_ID=your_emailjs_service_id
    VITE_EMAILJS_TEMPLATE_ID=your_emailjs_template_id
    VITE_EMAILJS_PUBLIC_KEY=your_emailjs_public_key
  4. Start the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:5173

πŸ“ Project Structure

organic-connect/
β”œβ”€β”€ public/
β”‚   └── back.jpg                 # Homepage background image
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ Components/
β”‚   β”‚   β”œβ”€β”€ Footer.jsx           # Site footer
β”‚   β”‚   β”œβ”€β”€ Navbar.jsx           # Navigation bar
β”‚   β”‚   β”œβ”€β”€ OrderForm.jsx        # Order placement form
β”‚   β”‚   β”œβ”€β”€ ReviewForm.jsx       # Review submission form
β”‚   β”‚   └── ReviewList.jsx       # Review display component
β”‚   β”œβ”€β”€ Context/
β”‚   β”‚   └── CartContext.jsx      # Shopping cart state management
β”‚   β”œβ”€β”€ Pages/
β”‚   β”‚   β”œβ”€β”€ About.jsx            # About page
β”‚   β”‚   β”œβ”€β”€ AdminDashboard.jsx   # Admin analytics dashboard
β”‚   β”‚   β”œβ”€β”€ AdminOrders.jsx      # Admin order management
β”‚   β”‚   β”œβ”€β”€ AllOrders.jsx        # Order listing page
β”‚   β”‚   β”œβ”€β”€ Cart.jsx             # Shopping cart page
β”‚   β”‚   β”œβ”€β”€ Contact.jsx          # Contact form
β”‚   β”‚   β”œβ”€β”€ Dashboard.jsx        # Farmer dashboard
β”‚   β”‚   β”œβ”€β”€ FarmerOnboarding.jsx # Farmer registration
β”‚   β”‚   β”œβ”€β”€ Home.jsx             # Homepage
β”‚   β”‚   β”œβ”€β”€ LearningHub.jsx      # Educational content
β”‚   β”‚   β”œβ”€β”€ Login.jsx            # User authentication
β”‚   β”‚   β”œβ”€β”€ Marketplace.jsx      # Main marketplace
β”‚   β”‚   β”œβ”€β”€ OrderHistory.jsx     # Order history page
β”‚   β”‚   β”œβ”€β”€ Profile.jsx          # User profile management
β”‚   β”‚   β”œβ”€β”€ ResetDemo.jsx        # Demo data reset
β”‚   β”‚   β”œβ”€β”€ Signup.jsx           # User registration
β”‚   β”‚   β”œβ”€β”€ ThankYou.jsx         # Thank you page
β”‚   β”‚   └── Wishlist.jsx         # User wishlist
β”‚   β”œβ”€β”€ Routes/
β”‚   β”‚   β”œβ”€β”€ PrivateRoute.jsx     # Protected route component
β”‚   β”‚   └── Routes.jsx           # Route definitions
β”‚   β”œβ”€β”€ App.jsx                  # Main application component
β”‚   β”œβ”€β”€ index.css                # Global styles
β”‚   └── main.jsx                 # Application entry point
β”œβ”€β”€ eslint.config.js             # ESLint configuration
β”œβ”€β”€ package.json                 # Dependencies and scripts
β”œβ”€β”€ tailwind.config.js           # Tailwind CSS configuration
β”œβ”€β”€ vite.config.js               # Vite build configuration
└── README.md                    # Project documentation

πŸ› οΈ Technology Stack

Frontend

  • React 19.1.0: Modern UI library with latest features
  • React Router DOM 7.7.0: Client-side routing
  • TailwindCSS 4.1.11: Utility-first CSS framework
  • React Icons 5.5.0: Icon library

Build Tools

  • Vite 7.0.4: Fast build tool and development server
  • ESLint 9.30.1: Code linting and formatting

Features & Integrations

  • EmailJS 4.4.1: Contact form email functionality
  • Three.js 0.178.0: 3D graphics (future enhancements)
  • React Three Fiber: React renderer for Three.js
  • i18next: Internationalization support

Development

  • Hot Module Replacement (HMR): Instant updates during development
  • ES Modules: Modern JavaScript module system
  • TypeScript Support: Ready for TypeScript migration

πŸ“š Usage Guide

Getting Started as a Consumer

  1. Sign Up: Create a consumer account
  2. Browse Marketplace: Explore verified organic farmers
  3. Filter & Search: Find farmers by location or crop type
  4. Read Reviews: Check farmer ratings and reviews
  5. Add to Cart: Select products for purchase
  6. Place Orders: Complete your purchase
  7. Track Orders: Monitor order status

Getting Started as a Farmer

  1. Sign Up: Create a farmer account
  2. Complete Onboarding: Fill out your farm details
  3. Upload Certification: Add organic certification documents
  4. Add Photos: Showcase your farm and products
  5. Manage Orders: Track and fulfill customer orders
  6. Build Reputation: Receive and respond to reviews

Admin Features

  1. Monitor Platform: View comprehensive analytics
  2. Manage Users: Oversee farmer and consumer accounts
  3. Order Oversight: Monitor all platform transactions
  4. Content Moderation: Manage reviews and listings

🌐 API Integration

EmailJS Configuration

For contact form functionality, configure EmailJS:

  1. Create an account at EmailJS
  2. Set up email service and template
  3. Add credentials to environment variables

πŸ”§ Scripts

# Development
npm run dev          # Start development server

# Production
npm run build        # Build for production
npm run preview      # Preview production build

# Code Quality
npm run lint         # Run ESLint

πŸš€ Deployment

Build for Production

npm run build

Deploy to Vercel

npm install -g vercel
vercel --prod

Deploy to Netlify

  1. Connect your GitHub repository
  2. Set build command: npm run build
  3. Set publish directory: dist

🀝 Contributing

We welcome contributions to Organic Connect! Please follow these steps:

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

Development Guidelines

  • Follow existing code style and conventions
  • Write descriptive commit messages
  • Add comments for complex logic
  • Test your changes thoroughly

πŸ› Known Issues

  • Cart persistence across sessions (planned enhancement)
  • Real-time order updates (future feature)
  • Mobile app version (roadmap item)

πŸ—ΊοΈ Roadmap

Phase 1 (Current)

  • βœ… Basic marketplace functionality
  • βœ… User authentication
  • βœ… Farmer onboarding
  • βœ… Order management
  • βœ… Review system

Phase 2 (Upcoming)

  • πŸ”„ Payment gateway integration
  • πŸ”„ Real-time notifications
  • πŸ”„ Mobile application
  • πŸ”„ Advanced analytics

Phase 3 (Future)

  • πŸ“± IoT integration for farm monitoring
  • πŸ€– AI-powered crop recommendations
  • 🌍 Global marketplace expansion
  • πŸ”— Blockchain certification tracking

πŸ“„ License

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

πŸ‘₯ Team

πŸ™ Acknowledgments

  • Organic farmers who inspired this platform
  • Open source community for amazing tools
  • Environmental advocates promoting sustainable agriculture

πŸ“ž Support


Built with ❀️ for sustainable agriculture and healthy communities.

About

E-commerce solution for organic products with shopping cart, order tracking, farmer dashboards, and reviews.

Resources

License

Stars

Watchers

Forks

Contributors

Languages