# cos10026-awp/project2 architecture

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

- Interactive diagram: https://gitdiagram.com/cos10026-awp/project2
- Repository: https://github.com/cos10026-awp/project2

## Overview

World Wide Travel is a fictional tourism company website whose implemented focus is advertising job vacancies. The visitor workflow is to browse the hiring homepage, view active listings and requirements, then open an application form; that form submits to an external test endpoint rather than the repository’s empty process_eoi.php. The site also presents destination and service information and a team page. Evidence is limited to the README and sampled files; unsampled routes are not assumed to have behavior.

Main entry points: [`jobs.php`](https://github.com/cos10026-awp/project2/blob/main/jobs.php) (Job listings), [`index.php`](https://github.com/cos10026-awp/project2/blob/main/index.php) (Tourism homepage), [`apply.php`](https://github.com/cos10026-awp/project2/blob/main/apply.php) (Application form), [`header.inc.php`](https://github.com/cos10026-awp/project2/blob/main/header.inc.php) (Shared navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public_site["Public site"]
  node_home["Tourism homepage<br/>[index.php]"]
  node_about["Team page<br/>[about.php]"]
  node_header["Shared navigation<br/>[header.inc.php]"]
  node_footer["Shared footer<br/>[footer.inc.php]"]
end

subgraph group_hiring["Hiring workflow"]
  node_job_page["Job listings<br/>[jobs.php]"]
  node_application["Application form<br/>[apply.php]"]
end

subgraph group_data["Job data"]
  node_job_helper["Job query and formatting<br/>[jobs_helper.php]"]
  node_db_config["Database settings<br/>[settings.php]"]
  node_job_database[("Job listings database<br/>[jobs.sql]")]
end

node_visitor(("Visitor"))
node_form_service["Form test service"]

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_job_page
node_visitor -->|"opens"| node_application
node_visitor -->|"opens"| node_about
node_home -->|"links to"| node_job_page
node_home -->|"links to"| node_application
node_home -->|"includes"| node_header
node_home -->|"includes"| node_footer
node_about -->|"includes"| node_header
node_about -->|"includes"| node_footer
node_job_page -->|"includes"| node_header
node_job_page -->|"includes"| node_footer
node_application -->|"includes"| node_header
node_application -->|"includes"| node_footer
node_job_page -->|"loads settings"| node_db_config
node_job_page -->|"uses"| node_job_helper
node_job_page -->|"connects"| node_job_database
node_job_helper -->|"queries listings"| node_job_database
node_application -->|"submits form"| node_form_service

click node_home "https://github.com/cos10026-awp/project2/blob/main/index.php"
click node_about "https://github.com/cos10026-awp/project2/blob/main/about.php"
click node_header "https://github.com/cos10026-awp/project2/blob/main/header.inc.php"
click node_footer "https://github.com/cos10026-awp/project2/blob/main/footer.inc.php"
click node_job_page "https://github.com/cos10026-awp/project2/blob/main/jobs.php"
click node_application "https://github.com/cos10026-awp/project2/blob/main/apply.php"
click node_job_helper "https://github.com/cos10026-awp/project2/blob/main/src/services/jobs_helper.php"
click node_db_config "https://github.com/cos10026-awp/project2/blob/main/settings.php"
click node_job_database "https://github.com/cos10026-awp/project2/blob/main/assets/databases/jobs.sql"

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_about,node_header,node_footer toneBlue
class node_job_page,node_application toneAmber
class node_job_helper,node_db_config,node_job_database toneMint
class node_visitor,node_form_service toneIndigo
```

## Components

### Public site

- [Tourism homepage](https://github.com/cos10026-awp/project2/blob/main/index.php): `index.php`
- [Team page](https://github.com/cos10026-awp/project2/blob/main/about.php): `about.php`
- [Shared navigation](https://github.com/cos10026-awp/project2/blob/main/header.inc.php): `header.inc.php`
- [Shared footer](https://github.com/cos10026-awp/project2/blob/main/footer.inc.php): `footer.inc.php`

### Hiring workflow

- [Job listings](https://github.com/cos10026-awp/project2/blob/main/jobs.php): `jobs.php`
- [Application form](https://github.com/cos10026-awp/project2/blob/main/apply.php): `apply.php`

### Job data

- [Job query and formatting](https://github.com/cos10026-awp/project2/blob/main/src/services/jobs_helper.php): `src/services/jobs_helper.php`
- [Database settings](https://github.com/cos10026-awp/project2/blob/main/settings.php): `settings.php`
- [Job listings database](https://github.com/cos10026-awp/project2/blob/main/assets/databases/jobs.sql): `assets/databases/jobs.sql`

### Other components

- **Visitor**
- **Form test service**

## Connections

- Visitor → Tourism homepage: opens (evidence: `index.php`)
- Visitor → Job listings: opens (evidence: `jobs.php`)
- Visitor → Application form: opens (evidence: `apply.php`)
- Visitor → Team page: opens (evidence: `about.php`)
- Tourism homepage → Job listings: links to (evidence: `index.php`)
- Tourism homepage → Application form: links to (evidence: `index.php`)
- Tourism homepage → Shared navigation: includes (evidence: `index.php`)
- Tourism homepage → Shared footer: includes (evidence: `index.php`)
- Team page → Shared navigation: includes (evidence: `about.php`)
- Team page → Shared footer: includes (evidence: `about.php`)
- Job listings → Shared navigation: includes (evidence: `jobs.php`)
- Job listings → Shared footer: includes (evidence: `jobs.php`)
- Application form → Shared navigation: includes (evidence: `apply.php`)
- Application form → Shared footer: includes (evidence: `apply.php`)
- Job listings → Database settings: loads settings (evidence: `jobs.php`)
- Job listings → Job query and formatting: uses (evidence: `jobs.php`)
- Job listings → Job listings database: connects (evidence: `jobs.php`)
- Job query and formatting → Job listings database: queries listings (evidence: `src/services/jobs_helper.php`)
- Application form → Form test service: submits form (evidence: `apply.php`)
