# rutujaj2002/tours-travels-website architecture

> Architecture diagram of the GitHub repository rutujaj2002/tours-travels-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rutujaj2002/tours-travels-website
- Repository: https://github.com/rutujaj2002/tours-travels-website

## Overview

##### Project type and purpose
- This is a simple full-stack Tours & Travels website.
- Frontend uses plain HTML, CSS, and JavaScript.
- Backend is a lightweight PHP/MySQL layer that handles booking‐detail storage.

##### File structure
- Top-level files and folders:
– index.php – the single entry point that serves HTML and processes form submissions.
– css/ (style.css) and js/ (index.js) – static assets for styling and client-side behavior.
– images/ – all site graphics.
– database/conn.php – PHP script that establishes a MySQL connection.
- No separate “controllers” or “models” directories; this is a monolithic, three-tier app (Presentation, Application, Data).

##### Extract additional insights from the README
- The site’s sole dynamic feature is capturing booking details in MySQL.
- It’s intended for practice, so business logic is minimal.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Client["Web Browser"]:::presentation

    subgraph "Web Server"
        StaticCSS["CSS\ncss/style.css"]:::presentation
        StaticJS["JS\njs/index.js"]:::presentation
        StaticImages["Images\nimages/"]:::presentation
        IndexPHP["index.php"]:::application
        ConnPHP["conn.php\ndatabase/conn.php"]:::application
    end

    DB["MySQL Database"]:::data

    Client -->|"GET index.php"| IndexPHP
    Client -->|"GET CSS"| StaticCSS
    Client -->|"GET JS"| StaticJS
    Client -->|"GET Images"| StaticImages
    IndexPHP -->|"includes conn.php"| ConnPHP
    ConnPHP -->|"SQL Query"| DB
    DB -->|"Result"| ConnPHP
    ConnPHP -->|"return data"| IndexPHP
    IndexPHP -->|"HTTP Response"| Client

    click StaticCSS "https://github.com/rutujaj2002/tours-travels-website/blob/main/css/style.css"
    click StaticJS "https://github.com/rutujaj2002/tours-travels-website/blob/main/js/index.js"
    click StaticImages "https://github.com/rutujaj2002/tours-travels-website/tree/main/images/"
    click IndexPHP "https://github.com/rutujaj2002/tours-travels-website/blob/main/index.php"
    click ConnPHP "https://github.com/rutujaj2002/tours-travels-website/blob/main/database/conn.php"

    classDef presentation fill:#BBDEFB,stroke:#333,stroke-width:1px
    classDef application fill:#C8E6C9,stroke:#333,stroke-width:1px
    classDef data fill:#FFE0B2,stroke:#333,stroke-width:1px
```
