# tambynifa/suivi-performance architecture

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

- Interactive diagram: https://gitdiagram.com/tambynifa/suivi-performance
- Repository: https://github.com/tambynifa/suivi-performance

## Overview

This is an academic-tracking application: staff can manage users, academic structures, registrations, evaluations and grades, then review dashboard summaries. The React interface routes users to domain pages, loads lists and submits CRUD operations through a shared API client; FastAPI handlers validate and persist records through SQLAlchemy. Prediction and settings screens are present in the frontend, and prediction-related models exist, but the sampled backend entry point does not register a prediction route. Edges reflect excerpts, source-index references or README evidence; unsampled details are not assumed.

Main entry points: [`backend/app/main.py`](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/main.py) (FastAPI application), [`backend/app/api/dependencies.py`](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/dependencies.py) (Session dependency), [`backend/app/api/routes/inscriptions.py`](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/inscriptions.py) (Registration endpoints), [`backend/app/api/routes/notes.py`](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/notes.py) (Grade endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web interface"]
  node_app["Page routing<br/>[App.jsx]"]
  node_nav["Navigation config<br/>[navigation.js]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_crud["CRUD interface<br/>[CrudPage.jsx]"]
  node_list["List loading<br/>[useListe.js]"]
  node_api_client["API client<br/>[api.js]"]
  node_prediction_ui["Predictions screen<br/>[Predictions.jsx]"]
  node_settings_ui["Settings screen<br/>[Parametres.jsx]"]
end

subgraph group_backend["API service"]
  node_server["FastAPI application<br/>[main.py]"]
  node_domain_routes["Domain endpoints"]
  node_registration_route["Registration endpoints<br/>[inscriptions.py]"]
  node_grades_route["Grade endpoints<br/>[notes.py]"]
  node_evaluation_route["Evaluation endpoints<br/>[evaluations.py]"]
  node_structure_route["Academic structure endpoints<br/>[parcours.py]"]
  node_subject_route["Subject endpoints<br/>[matieres.py]"]
  node_user_route["User endpoints<br/>[utilisateurs.py]"]
  node_db_dependency["Session dependency<br/>[dependencies.py]"]
end

subgraph group_data["Academic data"]
  node_models["Academic models"]
  node_user_model["User model<br/>[utilisateur.py]"]
  node_registration_model["Registration model<br/>[inscription.py]"]
  node_grade_model["Grade model<br/>[note.py]"]
  node_evaluation_model["Evaluation model<br/>[evaluation.py]"]
  node_pathway_model["Pathway model<br/>[parcours.py]"]
  node_prediction_model["Prediction model<br/>[prediction.py]"]
  node_db_config["Database sessions<br/>[database.py]"]
end

node_staff(("Staff user"))
node_postgres[("PostgreSQL")]

node_staff -->|"uses"| node_app
node_app -->|"resolves page"| node_nav
node_app -->|"renders"| node_dashboard
node_app -.->|"routes pages"| node_crud
node_dashboard -->|"loads lists"| node_list
node_dashboard -->|"checks status"| node_api_client
node_crud -->|"loads records"| node_list
node_crud -->|"calls operations"| node_api_client
node_api_client -->|"HTTP requests"| node_server
node_server -->|"creates tables"| node_db_config
node_server -->|"registers routers"| node_domain_routes
node_server -->|"registers"| node_registration_route
node_server -->|"registers"| node_grades_route
node_server -->|"registers"| node_evaluation_route
node_server -->|"registers"| node_structure_route
node_server -->|"registers"| node_subject_route
node_server -->|"registers"| node_user_route
node_registration_route -->|"requests session"| node_db_dependency
node_grades_route -->|"requests session"| node_db_dependency
node_registration_route -->|"queries and writes"| node_registration_model
node_registration_route -->|"checks student"| node_user_model
node_registration_route -->|"checks pathway"| node_pathway_model
node_grades_route -->|"queries and writes"| node_grade_model
node_grades_route -->|"checks evaluation"| node_evaluation_model
node_grades_route -->|"checks user"| node_user_model
node_evaluation_route -->|"requests session"| node_db_dependency
node_structure_route -->|"requests session"| node_db_dependency
node_subject_route -->|"requests session"| node_db_dependency
node_user_route -->|"requests session"| node_db_dependency
node_db_dependency -->|"opens session"| node_db_config
node_models -->|"uses base"| node_db_config
node_db_config -->|"connects"| node_postgres

click node_app "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/App.jsx"
click node_nav "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/config/navigation.js"
click node_dashboard "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/pages/Dashboard.jsx"
click node_crud "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/components/CrudPage.jsx"
click node_list "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/hooks/useListe.js"
click node_api_client "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/services/api.js"
click node_prediction_ui "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/pages/Predictions.jsx"
click node_settings_ui "https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/pages/Parametres.jsx"
click node_server "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/main.py"
click node_domain_routes "https://github.com/tambynifa/suivi-performance/tree/master/backend/app/api/routes"
click node_registration_route "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/inscriptions.py"
click node_grades_route "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/notes.py"
click node_evaluation_route "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/evaluations.py"
click node_structure_route "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/parcours.py"
click node_subject_route "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/matieres.py"
click node_user_route "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/utilisateurs.py"
click node_db_dependency "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/dependencies.py"
click node_models "https://github.com/tambynifa/suivi-performance/tree/master/backend/app/models"
click node_user_model "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/utilisateur.py"
click node_registration_model "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/inscription.py"
click node_grade_model "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/note.py"
click node_evaluation_model "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/evaluation.py"
click node_pathway_model "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/parcours.py"
click node_prediction_model "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/prediction.py"
click node_db_config "https://github.com/tambynifa/suivi-performance/blob/master/backend/app/db/database.py"

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_app,node_nav,node_dashboard,node_crud,node_list,node_api_client,node_prediction_ui,node_settings_ui,node_staff toneBlue
class node_server,node_domain_routes,node_registration_route,node_grades_route,node_evaluation_route,node_structure_route,node_subject_route,node_user_route,node_db_dependency,node_postgres toneAmber
class node_models,node_user_model,node_registration_model,node_grade_model,node_evaluation_model,node_pathway_model,node_prediction_model,node_db_config toneMint
```

## Components

### Web interface

- [Page routing](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Navigation config](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/config/navigation.js): `frontend/src/config/navigation.js`
- [Dashboard](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [CRUD interface](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/components/CrudPage.jsx): `frontend/src/components/CrudPage.jsx`
- [List loading](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/hooks/useListe.js): `frontend/src/hooks/useListe.js`
- [API client](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Predictions screen](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/pages/Predictions.jsx): `frontend/src/pages/Predictions.jsx`
- [Settings screen](https://github.com/tambynifa/suivi-performance/blob/master/frontend/src/pages/Parametres.jsx): `frontend/src/pages/Parametres.jsx`

### API service

- [FastAPI application](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/main.py): `backend/app/main.py`
- [Domain endpoints](https://github.com/tambynifa/suivi-performance/tree/master/backend/app/api/routes): `backend/app/api/routes`
- [Registration endpoints](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/inscriptions.py): `backend/app/api/routes/inscriptions.py`
- [Grade endpoints](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/notes.py): `backend/app/api/routes/notes.py`
- [Evaluation endpoints](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/evaluations.py): `backend/app/api/routes/evaluations.py`
- [Academic structure endpoints](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/parcours.py): `backend/app/api/routes/parcours.py`
- [Subject endpoints](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/matieres.py): `backend/app/api/routes/matieres.py`
- [User endpoints](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/routes/utilisateurs.py): `backend/app/api/routes/utilisateurs.py`
- [Session dependency](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/api/dependencies.py): `backend/app/api/dependencies.py`

### Academic data

- [Academic models](https://github.com/tambynifa/suivi-performance/tree/master/backend/app/models): `backend/app/models`
- [User model](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/utilisateur.py): `backend/app/models/utilisateur.py`
- [Registration model](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/inscription.py): `backend/app/models/inscription.py`
- [Grade model](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/note.py): `backend/app/models/note.py`
- [Evaluation model](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/evaluation.py): `backend/app/models/evaluation.py`
- [Pathway model](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/parcours.py): `backend/app/models/parcours.py`
- [Prediction model](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/models/prediction.py): `backend/app/models/prediction.py`
- [Database sessions](https://github.com/tambynifa/suivi-performance/blob/master/backend/app/db/database.py): `backend/app/db/database.py`

### Other components

- **Staff user**
- **PostgreSQL**

## Connections

- Staff user → Page routing: uses
- Page routing → Navigation config: resolves page (evidence: `frontend/src/App.jsx`)
- Page routing → Dashboard: renders (evidence: `frontend/src/App.jsx`)
- Page routing → CRUD interface: routes pages
- Dashboard → List loading: loads lists (evidence: `frontend/src/pages/Dashboard.jsx`)
- Dashboard → API client: checks status (evidence: `frontend/src/pages/Dashboard.jsx`)
- CRUD interface → List loading: loads records (evidence: `frontend/src/components/CrudPage.jsx`)
- CRUD interface → API client: calls operations (evidence: `frontend/src/components/CrudPage.jsx`)
- API client → FastAPI application: HTTP requests (evidence: `frontend/src/services/api.js`)
- FastAPI application → Database sessions: creates tables (evidence: `backend/app/main.py`)
- FastAPI application → Domain endpoints: registers routers (evidence: `backend/app/main.py`)
- FastAPI application → Registration endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Grade endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Evaluation endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Academic structure endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → Subject endpoints: registers (evidence: `backend/app/main.py`)
- FastAPI application → User endpoints: registers (evidence: `backend/app/main.py`)
- Registration endpoints → Session dependency: requests session (evidence: `backend/app/api/routes/inscriptions.py`)
- Grade endpoints → Session dependency: requests session (evidence: `backend/app/api/routes/notes.py`)
- Registration endpoints → Registration model: queries and writes (evidence: `backend/app/api/routes/inscriptions.py`)
- Registration endpoints → User model: checks student (evidence: `backend/app/api/routes/inscriptions.py`)
- Registration endpoints → Pathway model: checks pathway (evidence: `backend/app/api/routes/inscriptions.py`)
- Grade endpoints → Grade model: queries and writes (evidence: `backend/app/api/routes/notes.py`)
- Grade endpoints → Evaluation model: checks evaluation (evidence: `backend/app/api/routes/notes.py`)
- Grade endpoints → User model: checks user (evidence: `backend/app/api/routes/notes.py`)
- Evaluation endpoints → Session dependency: requests session (evidence: `backend/app/api/routes/evaluations.py`)
- Academic structure endpoints → Session dependency: requests session (evidence: `backend/app/api/routes/parcours.py`)
- Subject endpoints → Session dependency: requests session (evidence: `backend/app/api/routes/matieres.py`)
- User endpoints → Session dependency: requests session (evidence: `backend/app/api/routes/utilisateurs.py`)
- Session dependency → Database sessions: opens session (evidence: `backend/app/api/dependencies.py`)
- Academic models → Database sessions: uses base (evidence: `backend/app/models/utilisateur.py`)
- Database sessions → PostgreSQL: connects (evidence: `backend/app/db/database.py`)
