# eliott-web/projet-integration architecture

> Architecture diagram of the GitHub repository eliott-web/projet-integration, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eliott-web/projet-integration
- Repository: https://github.com/eliott-web/projet-integration

## Overview

This repository appears to combine a browser-based greenhouse monitoring and control demo with a small Raspberry Pi pump script and an Express/TypeScript server skeleton. The main user workflow is to inspect simulated sensor conditions, history and alerts, then adjust simulated device controls or dashboard settings. The sampled excerpts show these dashboard capabilities in one file; they do not establish a connection to the server or pump script. The server controller and table files were empty in the supplied evidence, so their runtime roles and relationships are unknown.

Main entry points: [`pompe/pompe.py`](https://github.com/eliott-web/projet-integration/blob/main/pompe/pompe.py) (GPIO pump script), [`mvp/app.js`](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js) (Dashboard app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Greenhouse dashboard"]
  node_dashboard_app["Dashboard app<br/>[app.js]"]
  node_sensor_views["Sensor views<br/>[app.js]"]
  node_history_charts["History and charts<br/>[app.js]"]
  node_device_controls["Device controls<br/>[app.js]"]
  node_alert_settings["Alerts and thresholds<br/>[app.js]"]
  node_dashboard_layout["Dashboard layout<br/>[app.js]"]
end

subgraph group_hardware["Pump hardware"]
  node_pump_script["GPIO pump script<br/>[pompe.py]"]
end

subgraph group_server["Server skeleton"]
  node_integration_controller["Integration controller"]
  node_humidity_table[("Humidity table<br/>[humidite.ts]")]
  node_pump_table[("Pump table<br/>[pompes.ts]")]
  node_greenhouse_table[("Greenhouse table<br/>[serre.ts]")]
  node_temperature_table[("Temperature table<br/>[temperature.ts]")]
end

node_user(("Greenhouse user"))
node_gpio_pump["GPIO pump"]

node_user -->|"uses"| node_dashboard_app
node_pump_script -->|"switches"| node_gpio_pump

click node_dashboard_app "https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js"
click node_sensor_views "https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js"
click node_history_charts "https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js"
click node_device_controls "https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js"
click node_alert_settings "https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js"
click node_dashboard_layout "https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js"
click node_pump_script "https://github.com/eliott-web/projet-integration/blob/main/pompe/pompe.py"
click node_integration_controller "https://github.com/eliott-web/projet-integration/blob/main/server/src/controller/integration.controller.ts"
click node_humidity_table "https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/humidite.ts"
click node_pump_table "https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/pompes.ts"
click node_greenhouse_table "https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/serre.ts"
click node_temperature_table "https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/temperature.ts"

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_dashboard_app,node_sensor_views,node_history_charts,node_device_controls,node_alert_settings,node_dashboard_layout,node_user toneBlue
class node_pump_script toneAmber
class node_integration_controller,node_humidity_table,node_pump_table,node_greenhouse_table,node_temperature_table toneMint
class node_gpio_pump toneIndigo
```

## Components

### Greenhouse dashboard

- [Dashboard app](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js): `mvp/app.js`
- [Sensor views](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js): `mvp/app.js`
- [History and charts](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js): `mvp/app.js`
- [Device controls](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js): `mvp/app.js`
- [Alerts and thresholds](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js): `mvp/app.js`
- [Dashboard layout](https://github.com/eliott-web/projet-integration/blob/main/mvp/app.js): `mvp/app.js`

### Pump hardware

- [GPIO pump script](https://github.com/eliott-web/projet-integration/blob/main/pompe/pompe.py): `pompe/pompe.py`

### Server skeleton

- [Integration controller](https://github.com/eliott-web/projet-integration/blob/main/server/src/controller/integration.controller.ts): `server/src/controller/integration.controller.ts`
- [Humidity table](https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/humidite.ts): `server/src/tables/humidite.ts`
- [Pump table](https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/pompes.ts): `server/src/tables/pompes.ts`
- [Greenhouse table](https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/serre.ts): `server/src/tables/serre.ts`
- [Temperature table](https://github.com/eliott-web/projet-integration/blob/main/server/src/tables/temperature.ts): `server/src/tables/temperature.ts`

### Other components

- **Greenhouse user**
- **GPIO pump**

## Connections

- Greenhouse user → Dashboard app: uses (evidence: `mvp/app.js`)
- GPIO pump script → GPIO pump: switches (evidence: `pompe/pompe.py`)
