# abdellha2013/gmao architecture

> Architecture diagram of the GitHub repository abdellha2013/gmao, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdellha2013/gmao
- Repository: https://github.com/abdellha2013/gmao

## Overview

GMAO is a predictive-maintenance platform: users work in a React application, whose documented architecture places a Laravel API between the interface and operational data and services. The domain spans equipment and intervention management, predictive alerts, analytics, QR scanning, and a document-grounded assistant. The README documents the AI services’ capabilities and several integrations, but no source excerpts were supplied; edges therefore show only documented relationships, not inferred implementation calls.

Main entry points: [`GMAO-BACKEND`](https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND) (Laravel REST API), [`GMAO-FRONTEND`](https://github.com/abdellha2013/gmao/tree/main/GMAO-FRONTEND) (React application), [`GMAO-SERVICES-IA`](https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA) (Sensor orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["User application"]
  node_frontend["React application"]
  node_workflows["Maintenance workflows"]
end

subgraph group_core["Maintenance backend"]
  node_backend["Laravel REST API"]
  node_access["JWT and RBAC"]
  node_maintenance["Equipment and work"]
  node_records["Faults and documents"]
end

subgraph group_ai["AI services"]
  node_ml["Failure prediction"]
  node_gateway["Sensor orchestration"]
  node_analytics["Maintenance analytics"]
  node_ocr["QR vision"]
  node_rag["RAG assistant"]
end

subgraph group_data["Data and models"]
  node_mysql[("MySQL")]
  node_qdrant[("Qdrant vectors")]
end

node_user(("Maintenance users"))
node_llm["OpenAI or Gemini"]
node_sensors(("IoT sensors"))

node_user -->|"uses"| node_frontend
node_frontend -->|"presents"| node_workflows
node_frontend -->|"uses API"| node_backend
node_backend -->|"secures"| node_access
node_backend -->|"manages"| node_maintenance
node_backend -->|"manages"| node_records
node_backend -->|"stores data"| node_mysql
node_sensors -->|"send readings"| node_gateway
node_gateway -->|"requests predictions"| node_ml
node_gateway -->|"creates interventions"| node_backend
node_analytics -->|"enriches metrics"| node_ml
node_ocr -->|"looks up equipment"| node_backend
node_rag -->|"retrieves vectors"| node_qdrant
node_rag -->|"generates answers"| node_llm

click node_frontend "https://github.com/abdellha2013/gmao/tree/main/GMAO-FRONTEND"
click node_workflows "https://github.com/abdellha2013/gmao/tree/main/GMAO-FRONTEND"
click node_backend "https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND"
click node_access "https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND"
click node_maintenance "https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND"
click node_records "https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND"
click node_ml "https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA"
click node_gateway "https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA"
click node_analytics "https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA"
click node_ocr "https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA"
click node_rag "https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA"

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_frontend,node_workflows,node_user toneBlue
class node_backend,node_access,node_maintenance,node_records toneAmber
class node_ml,node_gateway,node_analytics,node_ocr,node_rag toneMint
class node_mysql,node_qdrant toneRose
class node_llm,node_sensors toneIndigo
```

## Components

### User application

- [React application](https://github.com/abdellha2013/gmao/tree/main/GMAO-FRONTEND): `GMAO-FRONTEND`
- [Maintenance workflows](https://github.com/abdellha2013/gmao/tree/main/GMAO-FRONTEND): `GMAO-FRONTEND`

### Maintenance backend

- [Laravel REST API](https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND): `GMAO-BACKEND`
- [JWT and RBAC](https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND): `GMAO-BACKEND`
- [Equipment and work](https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND): `GMAO-BACKEND`
- [Faults and documents](https://github.com/abdellha2013/gmao/tree/main/GMAO-BACKEND): `GMAO-BACKEND`

### AI services

- [Failure prediction](https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA): `GMAO-SERVICES-IA`
- [Sensor orchestration](https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA): `GMAO-SERVICES-IA`
- [Maintenance analytics](https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA): `GMAO-SERVICES-IA`
- [QR vision](https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA): `GMAO-SERVICES-IA`
- [RAG assistant](https://github.com/abdellha2013/gmao/tree/main/GMAO-SERVICES-IA): `GMAO-SERVICES-IA`

### Data and models

- **MySQL**
- **Qdrant vectors**

### Other components

- **Maintenance users**
- **OpenAI or Gemini**
- **IoT sensors**

## Connections

- Maintenance users → React application: uses (evidence: `README.md`)
- React application → Maintenance workflows: presents (evidence: `README.md`)
- React application → Laravel REST API: uses API (evidence: `README.md`)
- Laravel REST API → JWT and RBAC: secures (evidence: `README.md`)
- Laravel REST API → Equipment and work: manages (evidence: `README.md`)
- Laravel REST API → Faults and documents: manages (evidence: `README.md`)
- Laravel REST API → MySQL: stores data (evidence: `README.md`)
- IoT sensors → Sensor orchestration: send readings (evidence: `README.md`)
- Sensor orchestration → Failure prediction: requests predictions (evidence: `README.md`)
- Sensor orchestration → Laravel REST API: creates interventions (evidence: `README.md`)
- Maintenance analytics → Failure prediction: enriches metrics (evidence: `README.md`)
- QR vision → Laravel REST API: looks up equipment (evidence: `README.md`)
- RAG assistant → Qdrant vectors: retrieves vectors (evidence: `README.md`)
- RAG assistant → OpenAI or Gemini: generates answers (evidence: `README.md`)
