- About
- Features
- Tech Stack
- Project Structure
- Getting Started
- Environment Variables
- Available Scripts
- Contributing
- License
ClyCites is an open-source platform designed to empower professional and aspiring farmers by bringing their trade into the digital realm. It enables farmers to market and sell their produce online directly from their farms, fostering communication with potential customers. ClyCites also aims to build a digital community of farmers and customers by acting as a central marketplace.
The platform addresses critical challenges in the agricultural sector by providing innovative digital solutions for market access, expert consultation, and farming assistance.
- 📱 E-Market: Connect directly with buyers and sell your produce at fair market prices without intermediaries
- 👨🌾 Expert Portal: Access agricultural experts for advice on crop management, disease control, and best practices
- 🤖 Agric Assistant: AI-powered assistant to help with farming decisions, crop planning, and market timing
- 📊 Price Monitoring: Track real-time market prices to make informed decisions about when to sell your produce
- 🌤️ Weather Detection: Get accurate weather forecasts and alerts to protect your crops from adverse conditions
- 🐛 Pest & Disease Detection: Identify and manage crop diseases and pests early with AI-powered image recognition
- Responsive Design: Mobile-first approach with full responsive support
- Dark/Light Theme: Built-in theme switching with next-themes
- Internationalization: Multi-language support with i18next
- Real-time Updates: Live data updates and notifications
- Progressive Web App: PWA capabilities for offline access
- Accessibility: WCAG compliant components and navigation
- Next.js 15.3.1 - React framework with App Router
- React 18 - UI library
- TypeScript 5 - Type-safe JavaScript
- Tailwind CSS 3.4.17 - Utility-first CSS framework
- Radix UI - Accessible component primitives
- Framer Motion 12.9.1 - Animation library
- Lucide React - Icon library
- next-themes - Theme switching
- ESLint - Code linting
- PostCSS - CSS processing
- Autoprefixer - CSS vendor prefixing
- Recharts - Chart components
- React Hook Form - Form handling
- Zod - Schema validation
- Axios - HTTP client
- i18next - Internationalization
ClyCites-Frontend/
├── ClyCites/ # Main frontend application
│ ├── app/ # Next.js app directory
│ │ ├── about/ # About page
│ │ ├── contact/ # Contact page
│ │ ├── disease/ # Disease detection
│ │ ├── nutrition/ # Nutrition resources
│ │ ├── program/ # Program information
│ │ └── resources/ # General resources
│ ├── components/ # React components
│ │ ├── ui/ # Reusable UI components
│ │ ├── Hero.tsx # Hero section
│ │ ├── Features.tsx # Features showcase
│ │ └── ... # Other components
│ ├── lib/ # Utility functions
│ ├── public/ # Static assets
│ └── types/ # TypeScript definitions
├── ClyCites-Emarket/ # E-Market sub-application
├── ClyCites-AgricAssis/ # Agricultural Assistant
├── ClyCites-Expertportal/ # Expert Portal
└── README.md # This file
Make sure you have the following installed on your machine:
-
Clone the repository
git clone https://github.com/Saga211/ClyCites-Frontend.git cd ClyCites-Frontend
-
Install dependencies for the main application
cd ClyCites npm install
-
Install dependencies for sub-applications (optional)
# E-Market cd ../ClyCites-Emarket npm install # Agricultural Assistant cd ../ClyCites-AgricAssis npm install
-
Start the development server
# From the ClyCites directory npm run dev
-
Open your browser Navigate to http://localhost:3000 to view the application.
npm run build
npm start
Create a .env.local
file in the root of each sub-application with the following variables:
# API Configuration
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Authentication
NEXTAUTH_SECRET=your-secret-key
NEXTAUTH_URL=http://localhost:3000
# External Services
NEXT_PUBLIC_WEATHER_API_KEY=your-weather-api-key
NEXT_PUBLIC_MAPS_API_KEY=your-maps-api-key
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/clycites_emarket"
# Authentication
NEXTAUTH_SECRET=your-secret-key
NEXTAUTH_URL=http://localhost:3001
# File Upload
UPLOADTHING_SECRET=your-uploadthing-secret
UPLOADTHING_APP_ID=your-uploadthing-app-id
# API Configuration
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_WEATHER_API_KEY=your-weather-api-key
# Authentication
NEXTAUTH_SECRET=your-secret-key
NEXTAUTH_URL=http://localhost:3002
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run dev # Start development server with Turbopack
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
We welcome contributions from the community! Please read our Code of Conduct before contributing.
-
Fork the repository
git clone https://github.com/your-username/ClyCites-Frontend.git cd ClyCites-Frontend
-
Create a feature branch
git checkout -b feature/your-feature-name
-
Make your changes
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
-
Commit your changes
git commit -m "feat: add your feature description"
-
Push to your branch
git push origin feature/your-feature-name
-
Open a Pull Request
- Provide a clear description of your changes
- Include any relevant issue numbers
- Request reviews from maintainers
- Code Style: Follow the existing ESLint configuration
- TypeScript: Use strict TypeScript for all new code
- Components: Use Radix UI primitives for accessibility
- Testing: Add tests for new features and bug fixes
- Documentation: Update README and component documentation
When reporting issues, please include:
- Clear description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Browser/device information
- Screenshots if applicable
This project is licensed under the MIT License - see the LICENSE file for details.
- Management Team - For vision and leadership
- All Contributors - For their valuable contributions
- Agricultural Experts - For domain knowledge and insights
- Open Source Community - For the amazing tools and libraries
- Email: [email protected]
- GitHub Issues: Create an issue
- Discussions: Join the discussion
Built with ❤️ for the agricultural community
Empowering farmers through technology