# thomaslinux/projetencheres architecture

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

- Interactive diagram: https://gitdiagram.com/thomaslinux/projetencheres
- Repository: https://github.com/thomaslinux/projetencheres

## Overview

Projet enchères is a Spring Boot web auction site backed by Microsoft SQL Server. The main user workflow is browsing and searching listings, viewing an article and its highest bid, then placing a bid; sellers can create and manage listings, while users can register and manage profiles. Controllers orchestrate service calls, with SQL repositories providing persistence. The graph also captures category and security capabilities. Relationships are limited to those shown in excerpts, SOURCE INDEX references, or the README; unsampled template and persistence details are not expanded.

Main entry points: [`src/main/java/fr/eni/projetencheres/controller/EnchereController.java`](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/EnchereController.java) (Auction controller), [`src/main/java/fr/eni/projetencheres/controller/LoginController.java`](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/LoginController.java) (Account controller), [`src/main/java/fr/eni/projetencheres/service/CategorieServiceImpl.java`](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/CategorieServiceImpl.java) (Category service), [`src/main/java/fr/eni/projetencheres/service/UtilisateurServiceImpl.java`](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/UtilisateurServiceImpl.java) (User service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_auctionctl["Auction controller"]
  node_accountctl["Account controller"]
  node_categoryctl["Category controller"]
  node_views["Page templates"]
end

subgraph group_domain["Auction domain"]
  node_articlemodel["Articles<br/>[Article.java]"]
  node_categorymodel["Categories<br/>[Categorie.java]"]
  node_bidmodel["Bids<br/>[Enchere.java]"]
  node_withdrawal["Pickup details<br/>[Retrait.java]"]
  node_article_svc["Article service"]
  node_category_svc["Category service"]
  node_bid_svc["Bid service"]
end

subgraph group_identity["Accounts and security"]
  node_user_model["User accounts<br/>[Utilisateur.java]"]
  node_user_svc["User service"]
  node_security["Web security"]
end

subgraph group_persistence["Persistence"]
  node_article_dao["Article SQL access<br/>[ArticleDaoSQL.java]"]
  node_category_dao["Category SQL access"]
  node_bid_dao["Bid SQL access<br/>[EnchereDaoSQL.java]"]
  node_user_dao["User SQL access"]
  node_withdrawal_dao["Pickup SQL access<br/>[RetraitDAOSQL.java]"]
end

node_visitor(("Site visitor"))
node_sqlserver[("SQL Server")]

node_visitor -->|"requests listings"| node_auctionctl
node_visitor -->|"requests account"| node_accountctl
node_auctionctl -->|"searches listings"| node_article_svc
node_auctionctl -->|"loads categories"| node_category_svc
node_auctionctl -->|"submits bids"| node_bid_svc
node_auctionctl -->|"loads user"| node_user_svc
node_auctionctl -->|"renders pages"| node_views
node_accountctl -->|"manages accounts"| node_user_svc
node_accountctl -->|"renders pages"| node_views
node_accountctl -->|"uses security"| node_security
node_categoryctl -->|"uses categories"| node_category_svc
node_article_svc -->|"delegates persistence"| node_article_dao
node_category_svc -->|"delegates persistence"| node_category_dao
node_bid_svc -->|"delegates persistence"| node_bid_dao
node_user_svc -->|"delegates persistence"| node_user_dao
node_article_dao -->|"queries"| node_sqlserver
node_category_dao -->|"queries"| node_sqlserver
node_bid_dao -->|"queries"| node_sqlserver
node_user_dao -->|"queries"| node_sqlserver
node_withdrawal_dao -->|"queries"| node_sqlserver
node_security -->|"authenticates via JDBC"| node_sqlserver

click node_auctionctl "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/EnchereController.java"
click node_accountctl "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/LoginController.java"
click node_categoryctl "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/CategorieController.java"
click node_views "https://github.com/thomaslinux/projetencheres/tree/master/src/main/resources/templates"
click node_articlemodel "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Article.java"
click node_categorymodel "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Categorie.java"
click node_bidmodel "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Enchere.java"
click node_withdrawal "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Retrait.java"
click node_article_svc "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/ArticleServiceImpl.java"
click node_category_svc "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/CategorieServiceImpl.java"
click node_bid_svc "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/EnchereServiceImpl.java"
click node_user_model "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Utilisateur.java"
click node_user_svc "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/UtilisateurServiceImpl.java"
click node_security "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/security/EncheresSecurity.java"
click node_article_dao "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/ArticleDaoSQL.java"
click node_category_dao "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/CategorieDaoSQL.java"
click node_bid_dao "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/EnchereDaoSQL.java"
click node_user_dao "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/UtilisateurDaoSql.java"
click node_withdrawal_dao "https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/RetraitDAOSQL.java"

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_auctionctl,node_accountctl,node_categoryctl,node_views toneBlue
class node_articlemodel,node_categorymodel,node_bidmodel,node_withdrawal,node_article_svc,node_category_svc,node_bid_svc,node_sqlserver toneAmber
class node_user_model,node_user_svc,node_security toneMint
class node_article_dao,node_category_dao,node_bid_dao,node_user_dao,node_withdrawal_dao toneRose
class node_visitor toneIndigo
```

## Components

### Web interface

- [Auction controller](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/EnchereController.java): `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`
- [Account controller](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/LoginController.java): `src/main/java/fr/eni/projetencheres/controller/LoginController.java`
- [Category controller](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/controller/CategorieController.java): `src/main/java/fr/eni/projetencheres/controller/CategorieController.java`
- [Page templates](https://github.com/thomaslinux/projetencheres/tree/master/src/main/resources/templates): `src/main/resources/templates`

### Auction domain

- [Articles](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Article.java): `src/main/java/fr/eni/projetencheres/bo/Article.java`
- [Categories](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Categorie.java): `src/main/java/fr/eni/projetencheres/bo/Categorie.java`
- [Bids](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Enchere.java): `src/main/java/fr/eni/projetencheres/bo/Enchere.java`
- [Pickup details](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Retrait.java): `src/main/java/fr/eni/projetencheres/bo/Retrait.java`
- [Article service](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/ArticleServiceImpl.java): `src/main/java/fr/eni/projetencheres/service/ArticleServiceImpl.java`
- [Category service](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/CategorieServiceImpl.java): `src/main/java/fr/eni/projetencheres/service/CategorieServiceImpl.java`
- [Bid service](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/EnchereServiceImpl.java): `src/main/java/fr/eni/projetencheres/service/EnchereServiceImpl.java`

### Accounts and security

- [User accounts](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/bo/Utilisateur.java): `src/main/java/fr/eni/projetencheres/bo/Utilisateur.java`
- [User service](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/service/UtilisateurServiceImpl.java): `src/main/java/fr/eni/projetencheres/service/UtilisateurServiceImpl.java`
- [Web security](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/security/EncheresSecurity.java): `src/main/java/fr/eni/projetencheres/security/EncheresSecurity.java`

### Persistence

- [Article SQL access](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/ArticleDaoSQL.java): `src/main/java/fr/eni/projetencheres/repository/ArticleDaoSQL.java`
- [Category SQL access](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/CategorieDaoSQL.java): `src/main/java/fr/eni/projetencheres/repository/CategorieDaoSQL.java`
- [Bid SQL access](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/EnchereDaoSQL.java): `src/main/java/fr/eni/projetencheres/repository/EnchereDaoSQL.java`
- [User SQL access](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/UtilisateurDaoSql.java): `src/main/java/fr/eni/projetencheres/repository/UtilisateurDaoSql.java`
- [Pickup SQL access](https://github.com/thomaslinux/projetencheres/blob/master/src/main/java/fr/eni/projetencheres/repository/RetraitDAOSQL.java): `src/main/java/fr/eni/projetencheres/repository/RetraitDAOSQL.java`

### Other components

- **Site visitor**
- **SQL Server**

## Connections

- Site visitor → Auction controller: requests listings (evidence: `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`)
- Site visitor → Account controller: requests account (evidence: `src/main/java/fr/eni/projetencheres/controller/LoginController.java`)
- Auction controller → Article service: searches listings (evidence: `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`)
- Auction controller → Category service: loads categories (evidence: `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`)
- Auction controller → Bid service: submits bids (evidence: `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`)
- Auction controller → User service: loads user (evidence: `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`)
- Auction controller → Page templates: renders pages (evidence: `src/main/java/fr/eni/projetencheres/controller/EnchereController.java`)
- Account controller → User service: manages accounts (evidence: `src/main/java/fr/eni/projetencheres/controller/LoginController.java`)
- Account controller → Page templates: renders pages (evidence: `src/main/java/fr/eni/projetencheres/controller/LoginController.java`)
- Account controller → Web security: uses security (evidence: `src/main/java/fr/eni/projetencheres/controller/LoginController.java`)
- Category controller → Category service: uses categories (evidence: `src/main/java/fr/eni/projetencheres/controller/CategorieController.java`)
- Article service → Article SQL access: delegates persistence (evidence: `src/main/java/fr/eni/projetencheres/service/ArticleServiceImpl.java`)
- Category service → Category SQL access: delegates persistence (evidence: `src/main/java/fr/eni/projetencheres/service/CategorieServiceImpl.java`)
- Bid service → Bid SQL access: delegates persistence (evidence: `src/main/java/fr/eni/projetencheres/service/EnchereServiceImpl.java`)
- User service → User SQL access: delegates persistence (evidence: `src/main/java/fr/eni/projetencheres/service/UtilisateurServiceImpl.java`)
- Article SQL access → SQL Server: queries (evidence: `README.md`)
- Category SQL access → SQL Server: queries (evidence: `README.md`)
- Bid SQL access → SQL Server: queries (evidence: `README.md`)
- User SQL access → SQL Server: queries (evidence: `README.md`)
- Pickup SQL access → SQL Server: queries (evidence: `README.md`)
- Web security → SQL Server: authenticates via JDBC (evidence: `src/main/java/fr/eni/projetencheres/security/EncheresSecurity.java`)
