# wilfriedndr/cuisinotheque architecture

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

- Interactive diagram: https://gitdiagram.com/wilfriedndr/cuisinotheque
- Repository: https://github.com/wilfriedndr/cuisinotheque

## Overview

Cuisinothèque is a Django recipe library: people browse and manage recipes, including structured sections, ingredients, and steps, with dashboard-based JSON import and recipe export. The main runtime path is HTTP routing into recipe views, which query or update the recipe domain stored through Django’s database configuration. The README also documents responsive, themed pages and animations. Several template and JavaScript relationships are not visible in the excerpts, so those presentation components are shown without guessed call edges.

Main entry points: [`cuisinotheque/urls.py`](https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/urls.py) (Project routes), [`recipes/views.py`](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/views.py) (Recipe views), [`recipes/models.py`](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/models.py) (Recipe domain), [`recipes/urls.py`](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/urls.py) (Recipe routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_project_routes["Project routes<br/>[urls.py]"]
  node_health["Health endpoint<br/>[views.py]"]
  node_recipe_routes["Recipe routes<br/>[urls.py]"]
  node_database_config["Database configuration<br/>[settings.py]"]
end

subgraph group_domain["Recipe management"]
  node_recipe_views["Recipe views<br/>[views.py]"]
  node_recipe_models["Recipe domain<br/>[models.py]"]
  node_recipe_admin["Recipe administration<br/>[admin.py]"]
end

subgraph group_transfer["Recipe exchange"]
  node_import_export["JSON and PDF transfer<br/>[views.py]"]
end

subgraph group_experience["User experience"]
  node_page_templates["Recipe pages"]
  node_recipe_list_js["Recipe list interactions<br/>[recipe_list.js]"]
  node_recipe_form_js["Recipe form interactions<br/>[recipe_form.js]"]
  node_recipe_update_js["Recipe update interactions<br/>[recipe_update.js]"]
  node_recipe_dashboard_js["Dashboard interactions"]
  node_recipe_transfer_js["Transfer interactions<br/>[recipe_transfer.js]"]
  node_recipe_detail_js["Recipe detail interactions<br/>[recipe_detail.js]"]
  node_delete_js["Delete interactions"]
  node_animations_js["Page animations<br/>[animations.js]"]
end

node_visitor(("Recipe user"))
node_postgres[("PostgreSQL")]

node_visitor -->|"sends requests"| node_project_routes
node_project_routes -->|"routes health"| node_health
node_project_routes -->|"includes routes"| node_recipe_routes
node_recipe_routes -->|"dispatches requests"| node_recipe_views
node_recipe_views -->|"reads and writes"| node_recipe_models
node_database_config -->|"configures connection"| node_postgres
node_recipe_views -.->|"renders pages"| node_page_templates
node_recipe_admin -->|"registers models"| node_recipe_models
node_import_export -->|"transfers recipe data"| node_recipe_models

click node_project_routes "https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/urls.py"
click node_health "https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/views.py"
click node_recipe_routes "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/urls.py"
click node_recipe_views "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/views.py"
click node_recipe_models "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/models.py"
click node_database_config "https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/settings.py"
click node_page_templates "https://github.com/wilfriedndr/cuisinotheque/tree/main/recipes/templates/recipes"
click node_recipe_list_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_list.js"
click node_recipe_form_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_form.js"
click node_recipe_update_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_update.js"
click node_recipe_dashboard_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_dashboard.js"
click node_recipe_transfer_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_transfer.js"
click node_recipe_detail_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_detail.js"
click node_delete_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_confirm_delete.js"
click node_animations_js "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/animations.js"
click node_recipe_admin "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/admin.py"
click node_import_export "https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/views.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_project_routes,node_health,node_recipe_routes,node_database_config,node_visitor toneBlue
class node_recipe_views,node_recipe_models,node_recipe_admin,node_postgres toneAmber
class node_import_export toneMint
class node_page_templates,node_recipe_list_js,node_recipe_form_js,node_recipe_update_js,node_recipe_dashboard_js,node_recipe_transfer_js,node_recipe_detail_js,node_delete_js,node_animations_js toneRose
```

## Components

### Web application

- [Project routes](https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/urls.py): `cuisinotheque/urls.py`
- [Health endpoint](https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/views.py): `cuisinotheque/views.py`
- [Recipe routes](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/urls.py): `recipes/urls.py`
- [Database configuration](https://github.com/wilfriedndr/cuisinotheque/blob/main/cuisinotheque/settings.py): `cuisinotheque/settings.py`

### Recipe management

- [Recipe views](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/views.py): `recipes/views.py`
- [Recipe domain](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/models.py): `recipes/models.py`
- [Recipe administration](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/admin.py): `recipes/admin.py`

### Recipe exchange

- [JSON and PDF transfer](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/views.py): `recipes/views.py`

### User experience

- [Recipe pages](https://github.com/wilfriedndr/cuisinotheque/tree/main/recipes/templates/recipes): `recipes/templates/recipes`
- [Recipe list interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_list.js): `recipes/static/recipes/js/recipe_list.js`
- [Recipe form interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_form.js): `recipes/static/recipes/js/recipe_form.js`
- [Recipe update interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_update.js): `recipes/static/recipes/js/recipe_update.js`
- [Dashboard interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_dashboard.js): `recipes/static/recipes/js/recipe_dashboard.js`
- [Transfer interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_transfer.js): `recipes/static/recipes/js/recipe_transfer.js`
- [Recipe detail interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_detail.js): `recipes/static/recipes/js/recipe_detail.js`
- [Delete interactions](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/recipe_confirm_delete.js): `recipes/static/recipes/js/recipe_confirm_delete.js`
- [Page animations](https://github.com/wilfriedndr/cuisinotheque/blob/main/recipes/static/recipes/js/animations.js): `recipes/static/recipes/js/animations.js`

### Other components

- **Recipe user**
- **PostgreSQL**

## Connections

- Recipe user → Project routes: sends requests (evidence: `cuisinotheque/urls.py`)
- Project routes → Health endpoint: routes health (evidence: `cuisinotheque/urls.py`)
- Project routes → Recipe routes: includes routes (evidence: `cuisinotheque/urls.py`)
- Recipe routes → Recipe views: dispatches requests (evidence: `recipes/urls.py`)
- Recipe views → Recipe domain: reads and writes (evidence: `recipes/views.py`)
- Database configuration → PostgreSQL: configures connection (evidence: `cuisinotheque/settings.py`)
- Recipe views → Recipe pages: renders pages
- Recipe administration → Recipe domain: registers models (evidence: `recipes/admin.py`)
- JSON and PDF transfer → Recipe domain: transfers recipe data (evidence: `recipes/views.py`)
