# dibikre/cargo architecture

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

- Interactive diagram: https://gitdiagram.com/dibikre/cargo
- Repository: https://github.com/dibikre/cargo

## Overview

CARGO is a Laravel-based logistics and supply-chain journalism platform, with a separate React cryptographic-search demonstration. The main user journey is reading transport-sector analysis and disruption alerts, discovering articles by topic or logistics context, and accessing subscriber-only material; journalists publish and moderate content, while administrators manage platform data and security. The map preserves the documented commodities, corridor, video, newsletter, subscription, analytics, and resource capabilities. Source excerpts are incomplete, so several feature connections are documented at the README level rather than verified as controller calls.

Main entry points: [`PROJET_LARAVEL/resources/views/journal`](https://github.com/dibikre/cargo/tree/main/PROJET_LARAVEL/resources/views/journal) (Public journal), [`src/App.tsx`](https://github.com/dibikre/cargo/blob/main/src/App.tsx) (Search simulator), [`PROJET_LARAVEL/app/Models/Article.php`](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Article.php) (Articles and alerts), [`PROJET_LARAVEL/app/Http/Controllers/Administration/TableauBordAdminControleur.php`](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Administration/TableauBordAdminControleur.php) (Admin console)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Reader experience"]
  node_journal["Public journal"]
  node_discovery["Topics and corridors<br/>[Categorie.php]"]
  node_commodities[("Commodities ticker")]
  node_resources[("Reader resources")]
end

subgraph group_editorial["Editorial workflow"]
  node_newsroom["Newsroom publishing"]
  node_moderation["Comment moderation"]
  node_video["Video management"]
  node_analytics["Editorial analytics"]
end

subgraph group_admin["Administration"]
  node_admin["Admin console"]
  node_admindata["Admin data management"]
  node_audit[("Security audit")]
end

subgraph group_domain["Domain and data"]
  node_articles[("Articles and alerts<br/>[Article.php]")]
  node_events[("Logistics events")]
  node_subscriptions[("Subscriptions")]
  node_users[("Accounts and roles<br/>[User.php]")]
  node_comments[("Reader comments<br/>[Commentaire.php]")]
end

subgraph group_search["Search demonstration"]
  node_searchdemo["Search simulator<br/>[App.tsx]"]
end

node_reader(("Reader"))
node_sitevisitor(("Demo visitor"))

node_reader -->|"reads"| node_journal
node_journal -->|"presents"| node_articles
node_journal -->|"offers discovery"| node_discovery
node_journal -->|"shows ticker"| node_commodities
node_journal -->|"shows events"| node_events
node_reader -->|"subscribes"| node_subscriptions
node_reader -->|"browses"| node_resources
node_newsroom -->|"publishes"| node_articles
node_moderation -->|"moderates"| node_comments
node_video -.->|"manages videos"| node_events
node_analytics -->|"measures readership"| node_articles
node_admin -->|"manages"| node_admindata
node_admindata -->|"updates"| node_commodities
node_admin -->|"audits actions"| node_audit
node_searchdemo -->|"simulates token search"| node_searchdemo
node_sitevisitor -->|"tries search"| node_searchdemo

click node_journal "https://github.com/dibikre/cargo/tree/main/PROJET_LARAVEL/resources/views/journal"
click node_articles "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Article.php"
click node_discovery "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Categorie.php"
click node_commodities "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/MatierePremiere.php"
click node_events "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/EvenementLogistique.php"
click node_resources "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/DocumentRessource.php"
click node_subscriptions "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/AbonnementUtilisateur.php"
click node_users "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/User.php"
click node_newsroom "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Redaction/ArticleRedactionControleur.php"
click node_moderation "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Redaction/ModerationCommentaireControleur.php"
click node_comments "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Commentaire.php"
click node_video "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Redaction/VideoRedactionControleur.php"
click node_analytics "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Services/ServiceStatistiquesHebdomadaires.php"
click node_admin "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Administration/TableauBordAdminControleur.php"
click node_admindata "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Administration/MatierePremiereAdminControleur.php"
click node_audit "https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/JournalActivite.php"
click node_searchdemo "https://github.com/dibikre/cargo/blob/main/src/App.tsx"

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_journal,node_discovery,node_commodities,node_resources toneBlue
class node_newsroom,node_moderation,node_video,node_analytics toneAmber
class node_admin,node_admindata,node_audit toneMint
class node_articles,node_events,node_subscriptions,node_users,node_comments toneRose
class node_searchdemo,node_reader,node_sitevisitor toneIndigo
```

## Components

### Reader experience

- [Public journal](https://github.com/dibikre/cargo/tree/main/PROJET_LARAVEL/resources/views/journal): `PROJET_LARAVEL/resources/views/journal`
- [Topics and corridors](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Categorie.php): `PROJET_LARAVEL/app/Models/Categorie.php`
- [Commodities ticker](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/MatierePremiere.php): `PROJET_LARAVEL/app/Models/MatierePremiere.php`
- [Reader resources](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/DocumentRessource.php): `PROJET_LARAVEL/app/Models/DocumentRessource.php`

### Editorial workflow

- [Newsroom publishing](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Redaction/ArticleRedactionControleur.php): `PROJET_LARAVEL/app/Http/Controllers/Redaction/ArticleRedactionControleur.php`
- [Comment moderation](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Redaction/ModerationCommentaireControleur.php): `PROJET_LARAVEL/app/Http/Controllers/Redaction/ModerationCommentaireControleur.php`
- [Video management](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Redaction/VideoRedactionControleur.php): `PROJET_LARAVEL/app/Http/Controllers/Redaction/VideoRedactionControleur.php`
- [Editorial analytics](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Services/ServiceStatistiquesHebdomadaires.php): `PROJET_LARAVEL/app/Services/ServiceStatistiquesHebdomadaires.php`

### Administration

- [Admin console](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Administration/TableauBordAdminControleur.php): `PROJET_LARAVEL/app/Http/Controllers/Administration/TableauBordAdminControleur.php`
- [Admin data management](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Http/Controllers/Administration/MatierePremiereAdminControleur.php): `PROJET_LARAVEL/app/Http/Controllers/Administration/MatierePremiereAdminControleur.php`
- [Security audit](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/JournalActivite.php): `PROJET_LARAVEL/app/Models/JournalActivite.php`

### Domain and data

- [Articles and alerts](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Article.php): `PROJET_LARAVEL/app/Models/Article.php`
- [Logistics events](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/EvenementLogistique.php): `PROJET_LARAVEL/app/Models/EvenementLogistique.php`
- [Subscriptions](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/AbonnementUtilisateur.php): `PROJET_LARAVEL/app/Models/AbonnementUtilisateur.php`
- [Accounts and roles](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/User.php): `PROJET_LARAVEL/app/Models/User.php`
- [Reader comments](https://github.com/dibikre/cargo/blob/main/PROJET_LARAVEL/app/Models/Commentaire.php): `PROJET_LARAVEL/app/Models/Commentaire.php`

### Search demonstration

- [Search simulator](https://github.com/dibikre/cargo/blob/main/src/App.tsx): `src/App.tsx`

### Other components

- **Reader**
- **Demo visitor**

## Connections

- Reader → Public journal: reads (evidence: `README.md`)
- Public journal → Articles and alerts: presents (evidence: `README.md`)
- Public journal → Topics and corridors: offers discovery (evidence: `README.md`)
- Public journal → Commodities ticker: shows ticker (evidence: `README.md`)
- Public journal → Logistics events: shows events (evidence: `README.md`)
- Reader → Subscriptions: subscribes (evidence: `README.md`)
- Reader → Reader resources: browses (evidence: `README.md`)
- Newsroom publishing → Articles and alerts: publishes (evidence: `README.md`)
- Comment moderation → Reader comments: moderates (evidence: `README.md`)
- Video management → Logistics events: manages videos
- Editorial analytics → Articles and alerts: measures readership (evidence: `PROJET_LARAVEL/app/Services/ServiceStatistiquesHebdomadaires.php`)
- Admin console → Admin data management: manages (evidence: `README.md`)
- Admin data management → Commodities ticker: updates (evidence: `README.md`)
- Admin console → Security audit: audits actions (evidence: `README.md`)
- Search simulator → Search simulator: simulates token search (evidence: `src/App.tsx`)
- Demo visitor → Search simulator: tries search (evidence: `src/App.tsx`)
