A sophisticated web application for agricultural professionals to calculate and manage biological pest control strategies. This tool helps greenhouse managers and farmers optimize their Integrated Pest Management (IPM) programs by providing precise calculations for beneficial insect quantities and associated costs.
-
🏗️ Compartment Management
- Configure multiple greenhouse compartments with custom dimensions
- Automatic area calculations
- Visual representation of compartment layouts
-
🐛 Biocontrol Agent Management
- Comprehensive database of biological control agents
- Custom pricing configuration
- Population tracking per unit
- Method of action documentation
-
📊 Advanced Calculations
- Real-time computation of required quantities
- Cost analysis and breakdowns
- Area-based pest density calculations
- Program vs. extra units comparison
-
🎨 Visual Tools
- Interactive greenhouse layout visualization
- Cost distribution charts
- Units needed visualization
- Dark/light mode support
-
📱 Responsive Design
- Full functionality on both desktop and mobile devices
- Adaptive layouts for different screen sizes
- Touch-friendly interface
- 💾 Configuration Management
- Save and load greenhouse setups
- Export detailed PDF reports
- Local storage persistence
- Supplier program integration
- Node.js 18.0.0 or higher
- npm or yarn package manager
-
Clone the repository: ```bash git clone https://github.com/yourusername/ipm-calculator.git cd ipm-calculator ```
-
Install dependencies: ```bash npm install
yarn install ```
- Start the development server: ```bash npm run dev
yarn dev ```
- Open http://localhost:3000 in your browser
- Navigate to the "Compartment Configuration" section
- Click "Add New Compartment" to create a compartment
- Enter dimensions (width, length) and number of bays
- Repeat for additional compartments
- Use the settings menu (bug icon) to:
- Add new agents
- Modify existing agents
- Update pricing
- Add branded names
- Select desired biocontrol agents
- Enter desired pest density per square meter
- Choose target compartments for each agent
- Review calculations in the "Order Calculations" section
- Open the supplier program menu (calendar icon)
- Enter weekly program details
- Input scheduled quantities for each agent
- Save to compare with calculated requirements
- Click "Export PDF" in the calculations section
- Customize report contents:
- Select sections to include
- Add notes
- Choose orientation
- Generate and download the PDF
- Framework: Next.js 14
- UI Components: shadcn/ui
- Styling: Tailwind CSS
- Charts: Recharts
- PDF Generation: jsPDF
- Icons: Lucide React
- State Management: React Hooks
- Storage: Local Storage API
We welcome contributions to the IPM Calculator! Please follow these steps:
- Fork the repository
- Create a feature branch (`git checkout -b feature/AmazingFeature`)
- Commit your changes (`git commit -m 'Add some AmazingFeature'`)
- Push to the branch (`git push origin feature/AmazingFeature`)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the agricultural community