# duyv0-dev/farm-management-system architecture

> Architecture diagram of the GitHub repository duyv0-dev/farm-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/duyv0-dev/farm-management-system
- Repository: https://github.com/duyv0-dev/farm-management-system

## Overview

The README describes a farm-management system with web and desktop clients, a REST API, and a shared database. Its principal workflow is users managing farm records and monitoring operations, with search/filter, dashboard, and report-export capabilities. The repository tree contains only README.md and no source excerpts, so component paths and internal call ownership cannot be established; the graph therefore reflects documented capabilities and architecture only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Client Platforms"]
  node_web["Web App"]
  node_desktop["Desktop App"]
end

subgraph group_service["Shared Service"]
  node_api["REST API"]
  node_database[("Shared Database")]
end

subgraph group_operations["Farm Operations"]
  node_users["User Management"]
  node_farms["Farm and Garden"]
  node_crops["Crop Management"]
  node_seasons["Season Management"]
  node_tasks["Cultivation Tasks"]
  node_supplies["Supply Management"]
end

subgraph group_insights["Insights and Reports"]
  node_search["Search and Filters"]
  node_dashboard["Dashboard"]
  node_reports["Statistical Reports"]
  node_pdf["PDF Export"]
  node_excel["Excel Export"]
end

node_farmer(("Farm User"))

node_farmer -->|"uses"| node_web
node_farmer -->|"uses"| node_desktop
node_web -->|"REST requests"| node_api
node_desktop -->|"REST requests"| node_api
node_api -->|"reads and writes"| node_database
node_api -->|"supports management"| node_users
node_api -->|"supports management"| node_farms
node_api -->|"supports management"| node_crops
node_api -->|"supports management"| node_seasons
node_api -->|"supports management"| node_tasks
node_api -->|"supports management"| node_supplies
node_api -->|"provides"| node_search
node_api -->|"provides"| node_dashboard
node_api -->|"provides"| node_reports
node_reports -->|"exports"| node_pdf
node_reports -->|"exports"| node_excel

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_web,node_desktop,node_farmer toneBlue
class node_api,node_database toneAmber
class node_users,node_farms,node_crops,node_seasons,node_tasks,node_supplies toneMint
class node_search,node_dashboard,node_reports,node_pdf,node_excel toneRose
```

## Components

### Client Platforms

- **Web App**
- **Desktop App**

### Shared Service

- **REST API**
- **Shared Database**

### Farm Operations

- **User Management**
- **Farm and Garden**
- **Crop Management**
- **Season Management**
- **Cultivation Tasks**
- **Supply Management**

### Insights and Reports

- **Search and Filters**
- **Dashboard**
- **Statistical Reports**
- **PDF Export**
- **Excel Export**

### Other components

- **Farm User**

## Connections

- Farm User → Web App: uses
- Farm User → Desktop App: uses
- Web App → REST API: REST requests
- Desktop App → REST API: REST requests
- REST API → Shared Database: reads and writes
- REST API → User Management: supports management
- REST API → Farm and Garden: supports management
- REST API → Crop Management: supports management
- REST API → Season Management: supports management
- REST API → Cultivation Tasks: supports management
- REST API → Supply Management: supports management
- REST API → Search and Filters: provides
- REST API → Dashboard: provides
- REST API → Statistical Reports: provides
- Statistical Reports → PDF Export: exports
- Statistical Reports → Excel Export: exports
