# chingu-voyages/v62-tier2-team-22 architecture

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

- Interactive diagram: https://gitdiagram.com/chingu-voyages/v62-tier2-team-22
- Repository: https://github.com/chingu-voyages/v62-tier2-team-22

## Overview

This repository is a minimal Next.js starter, not yet a voyage-task product: its home page displays the default Next.js welcome screen. Separately, it defines a Prisma client configured for PostgreSQL, but no sampled page or other runtime code uses that client. The graph captures only those visible responsibilities; the Prisma schema’s contents and any broader product workflow were not shown.

Main entry points: [`app/layout.tsx`](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/layout.tsx) (Root layout), [`lib/prisma.ts`](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/lib/prisma.ts) (Prisma client), [`app/page.tsx`](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/page.tsx) (Starter page), [`app/globals.css`](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/globals.css) (Global styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_home["Starter page<br/>[page.tsx]"]
node_layout["Root layout<br/>[layout.tsx]"]
node_styles["Global styles<br/>[globals.css]"]
node_prisma["Prisma client<br/>[prisma.ts]"]
node_postgres[("PostgreSQL")]
node_schema["Prisma schema<br/>[schema.prisma]"]

node_visitor -->|"views page"| node_home
node_layout -->|"imports styles"| node_styles
node_prisma -->|"connects to"| node_postgres

click node_home "https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/page.tsx"
click node_layout "https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/layout.tsx"
click node_styles "https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/globals.css"
click node_prisma "https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/lib/prisma.ts"
click node_schema "https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/prisma/schema.prisma"

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_visitor toneIndigo
class node_home,node_layout,node_styles,node_schema toneTeal
class node_prisma toneBlue
class node_postgres toneAmber
```

## Components

### Other components

- **Visitor**
- [Starter page](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/page.tsx): `app/page.tsx`
- [Root layout](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/layout.tsx): `app/layout.tsx`
- [Global styles](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/app/globals.css): `app/globals.css`
- [Prisma client](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/lib/prisma.ts): `lib/prisma.ts`
- **PostgreSQL**
- [Prisma schema](https://github.com/chingu-voyages/v62-tier2-team-22/blob/main/prisma/schema.prisma): `prisma/schema.prisma`

## Connections

- Visitor → Starter page: views page (evidence: `app/page.tsx`)
- Root layout → Global styles: imports styles (evidence: `app/layout.tsx`)
- Prisma client → PostgreSQL: connects to (evidence: `lib/prisma.ts`)
