Skip to content

agstack/OpenAgri-PestAndDiseaseManagement

Repository files navigation

Pest and Disease Management

🇪🇺 "This service was created in the context of OpenAgri project (https://horizon-openagri.eu/). OpenAgri has received funding from the EU’s Horizon Europe research and innovation programme under Grant Agreement no. 101134083."

Description

The Pest and Disease Management(P&DM) service supports farmers by providing multiple ways of calculating a risk associated with diseases, Growing Degree Days for pests and other mechanisms.

Requirements

  • git
  • docker
  • docker-compose

Docker version used during development: 27.0.3

Installation

There are two ways to install this service, via docker or directly from source.

Deploying from source

When deploying from source, use python 3:11.
Also, you should use a venv when doing this.

A list of libraries that are required for this service is present in the "requirements.txt" file.
This service uses FastAPI as a web framework to serve APIs, alembic for database migrations sqlalchemy for database ORM mapping.

Deploying via docker

After installing docker you can run the following commands to run the application:

docker compose build
docker compose up

The application will be served on http://127.0.0.1:{SERVICE_PORT}, where SERVICE_PORT is the value read from the .env (default 8003)

Documentation

A list of APIs can be viewed in the API.md file, and a full list of APIs can be viewed here.

The basic flow for this service is as follows:

  1. The user registers and/or logs in;
  2. The user creates their parcel/s
  3. The user creates one or more pest and/or disease models
  4. The user queries the system for either risk index or growing degree days (GDD) for pest and disease models respectively

Contribution

Please contact the maintainer of this repository.

License

This project code is licensed under the EUPL 1.2 license, see the LICENSE file for more details. Please note that each service may have different licenses, which can be found their specific source code repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages