# mouna48/tourify_web architecture

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

- Interactive diagram: https://gitdiagram.com/mouna48/tourify_web
- Repository: https://github.com/mouna48/tourify_web

## Overview

Tourify is a static travel-discovery site. Visitors browse countries, optionally filter them by place category, open a country’s cities and places, and follow a place link to its detail page. The shared JavaScript contains the page rendering and lookup logic, using the bundled country, city, category, and place data; there is no server or database. The excerpts show rendering and navigation links, but not the HTML script-loading setup, so those connections are not inferred.

Main entry points: [`app.js`](https://github.com/mouna48/tourify_web/blob/main/app.js) (Page rendering and lookups), [`pais.html`](https://github.com/mouna48/tourify_web/blob/main/pais.html) (Country page), [`index.html`](https://github.com/mouna48/tourify_web/blob/main/index.html) (Home and filters), [`detalle.html`](https://github.com/mouna48/tourify_web/blob/main/detalle.html) (Place detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Travel browsing"]
  node_home["Home and filters<br/>[index.html]"]
  node_country["Country page<br/>[pais.html]"]
  node_place_detail["Place detail<br/>[detalle.html]"]
end

subgraph group_runtime["Client-side runtime"]
  node_page_logic["Page rendering and lookups<br/>[app.js]"]
  node_travel_data["Travel catalog data<br/>[datos.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"links to country"| node_country
node_country -->|"links to place"| node_place_detail
node_page_logic -->|"reads catalog"| node_travel_data
node_page_logic -->|"renders country view"| node_country
node_page_logic -->|"renders detail view"| node_place_detail

click node_home "https://github.com/mouna48/tourify_web/blob/main/index.html"
click node_country "https://github.com/mouna48/tourify_web/blob/main/pais.html"
click node_place_detail "https://github.com/mouna48/tourify_web/blob/main/detalle.html"
click node_page_logic "https://github.com/mouna48/tourify_web/blob/main/app.js"
click node_travel_data "https://github.com/mouna48/tourify_web/blob/main/datos.js"

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_home,node_country,node_place_detail toneBlue
class node_page_logic,node_travel_data toneAmber
class node_visitor toneIndigo
```

## Components

### Travel browsing

- [Home and filters](https://github.com/mouna48/tourify_web/blob/main/index.html): `index.html`
- [Country page](https://github.com/mouna48/tourify_web/blob/main/pais.html): `pais.html`
- [Place detail](https://github.com/mouna48/tourify_web/blob/main/detalle.html): `detalle.html`

### Client-side runtime

- [Page rendering and lookups](https://github.com/mouna48/tourify_web/blob/main/app.js): `app.js`
- [Travel catalog data](https://github.com/mouna48/tourify_web/blob/main/datos.js): `datos.js`

### Other components

- **Visitor**

## Connections

- Visitor → Home and filters: opens (evidence: `README.md`)
- Home and filters → Country page: links to country
- Country page → Place detail: links to place
- Page rendering and lookups → Travel catalog data: reads catalog (evidence: `app.js`)
- Page rendering and lookups → Country page: renders country view (evidence: `app.js`)
- Page rendering and lookups → Place detail: renders detail view (evidence: `app.js`)
