# anaisbfk/programmationavance architecture

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

- Interactive diagram: https://gitdiagram.com/anaisbfk/programmationavance
- Repository: https://github.com/anaisbfk/programmationavance

## Overview

This is a small Laravel game-catalogue application: visitors can browse a hard-coded game list and open a game’s detail page. The shown routes dispatch to GameController, which supplies data to the corresponding Blade view. A separate Laravel user model and factory support the framework’s user/authentication conventions, but the sampled routes show no account workflow. The README describes Laravel generally rather than documenting additional product capabilities; unsampled application behavior is therefore not inferred.

Main entry points: [`app/Http/Controllers/GameController.php`](https://github.com/anaisbfk/programmationavance/blob/main/app/Http/Controllers/GameController.php) (Game controller), [`public/index.php`](https://github.com/anaisbfk/programmationavance/blob/main/public/index.php) (HTTP entry), [`routes/web.php`](https://github.com/anaisbfk/programmationavance/blob/main/routes/web.php) (Web routes), [`database/factories/UserFactory.php`](https://github.com/anaisbfk/programmationavance/blob/main/database/factories/UserFactory.php) (User factory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request handling"]
  node_entry["HTTP entry<br/>[index.php]"]
  node_routes["Web routes<br/>[web.php]"]
end

subgraph group_catalogue["Game catalogue"]
  node_games["Game controller<br/>[GameController.php]"]
  node_home["Catalogue page<br/>[home.blade.php]"]
  node_detail["Game detail page"]
end

subgraph group_identity["User identity"]
  node_user["User model<br/>[User.php]"]
  node_user_factory["User factory<br/>[UserFactory.php]"]
end

node_visitor(("Visitor"))

node_visitor -->|"sends request"| node_entry
node_entry -->|"bootstraps routes"| node_routes
node_routes -->|"dispatches to"| node_games
node_games -->|"renders with games"| node_home
node_games -->|"renders with game"| node_detail
node_user_factory -->|"creates"| node_user

click node_entry "https://github.com/anaisbfk/programmationavance/blob/main/public/index.php"
click node_routes "https://github.com/anaisbfk/programmationavance/blob/main/routes/web.php"
click node_games "https://github.com/anaisbfk/programmationavance/blob/main/app/Http/Controllers/GameController.php"
click node_home "https://github.com/anaisbfk/programmationavance/blob/main/resources/views/home.blade.php"
click node_detail "https://github.com/anaisbfk/programmationavance/blob/main/resources/views/game-detail.blade.php"
click node_user "https://github.com/anaisbfk/programmationavance/blob/main/app/Models/User.php"
click node_user_factory "https://github.com/anaisbfk/programmationavance/blob/main/database/factories/UserFactory.php"

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_entry,node_routes toneBlue
class node_games,node_home,node_detail toneAmber
class node_user,node_user_factory toneMint
class node_visitor toneIndigo
```

## Components

### Request handling

- [HTTP entry](https://github.com/anaisbfk/programmationavance/blob/main/public/index.php): `public/index.php`
- [Web routes](https://github.com/anaisbfk/programmationavance/blob/main/routes/web.php): `routes/web.php`

### Game catalogue

- [Game controller](https://github.com/anaisbfk/programmationavance/blob/main/app/Http/Controllers/GameController.php): `app/Http/Controllers/GameController.php`
- [Catalogue page](https://github.com/anaisbfk/programmationavance/blob/main/resources/views/home.blade.php): `resources/views/home.blade.php`
- [Game detail page](https://github.com/anaisbfk/programmationavance/blob/main/resources/views/game-detail.blade.php): `resources/views/game-detail.blade.php`

### User identity

- [User model](https://github.com/anaisbfk/programmationavance/blob/main/app/Models/User.php): `app/Models/User.php`
- [User factory](https://github.com/anaisbfk/programmationavance/blob/main/database/factories/UserFactory.php): `database/factories/UserFactory.php`

### Other components

- **Visitor**

## Connections

- Visitor → HTTP entry: sends request (evidence: `public/index.php`)
- HTTP entry → Web routes: bootstraps routes
- Web routes → Game controller: dispatches to (evidence: `routes/web.php`)
- Game controller → Catalogue page: renders with games (evidence: `app/Http/Controllers/GameController.php`)
- Game controller → Game detail page: renders with game (evidence: `app/Http/Controllers/GameController.php`)
- User factory → User model: creates (evidence: `database/factories/UserFactory.php`)
