# dekana576/dimata-company-profile-2026 architecture

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

- Interactive diagram: https://gitdiagram.com/dekana576/dimata-company-profile-2026
- Repository: https://github.com/dekana576/dimata-company-profile-2026

## Overview

Dimata Company Profile is a public company website with a CMS for managing its content. Visitors browse company information, products, pricing, projects, events, blog posts, and careers; contact submissions are emailed. CMS administrators sign in and manage content such as gallery images, while API routes provide content operations backed by MySQL. The README documents the broader feature set; sampled routes confirm selected database, authentication, upload, and mail integrations. CMS-to-API calls and several unsampled feature implementations are not verified here.

Main entry points: [`src/app/(public)`](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/(public)) (Public pages), [`src/app/cms`](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/cms) (CMS interface), [`src/app/api`](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api) (Content routes), [`src/lib/prisma.ts`](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/prisma.ts) (Database client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public website"]
  node_public_pages["Public pages"]
  node_content_views["Content views"]
  node_language["Language support"]
end

subgraph group_admin["CMS administration"]
  node_cms["CMS interface"]
end

subgraph group_api["API services"]
  node_auth_api["Authentication routes"]
  node_content_api["Content routes"]
  node_contact_api["Contact endpoint<br/>[route.ts]"]
  node_upload_api["Upload endpoints"]
end

subgraph group_internal["Shared infrastructure"]
  node_auth["JWT helpers<br/>[auth.ts]"]
  node_upload["File handling<br/>[upload.ts]"]
  node_mail["Email sender<br/>[mail.ts]"]
  node_prisma["Database client<br/>[prisma.ts]"]
  node_db_config["DB configuration<br/>[db-config.ts]"]
end

node_visitor(("Website visitor"))
node_cms_admin(("CMS administrator"))
node_mysql[("MySQL database")]
node_smtp["SMTP service"]

node_visitor -->|"browses"| node_public_pages
node_public_pages -->|"renders"| node_content_views
node_public_pages -->|"supports language"| node_language
node_cms_admin -->|"manages content"| node_cms
node_cms -.->|"signs in"| node_auth_api
node_cms -.->|"manages content"| node_content_api
node_auth_api -->|"verifies tokens"| node_auth
node_content_api -->|"checks access"| node_auth
node_content_api -->|"queries content"| node_prisma
node_contact_api -->|"sends message"| node_mail
node_mail -->|"delivers email"| node_smtp
node_upload_api -->|"checks access"| node_auth
node_upload_api -->|"saves files"| node_upload
node_prisma -->|"parses connection"| node_db_config
node_prisma -->|"queries database"| node_mysql

click node_public_pages "https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/(public)"
click node_content_views "https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/components/pages"
click node_language "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/contexts/language-context.tsx"
click node_cms "https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/cms"
click node_auth_api "https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api/auth"
click node_content_api "https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api"
click node_contact_api "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/app/api/contact/route.ts"
click node_upload_api "https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api/upload"
click node_auth "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/auth.ts"
click node_upload "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/upload.ts"
click node_mail "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/mail.ts"
click node_prisma "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/prisma.ts"
click node_db_config "https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/db-config.ts"

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_public_pages,node_content_views,node_language toneBlue
class node_cms,node_mysql toneAmber
class node_auth_api,node_content_api,node_contact_api,node_upload_api toneMint
class node_auth,node_upload,node_mail,node_prisma,node_db_config toneRose
class node_visitor,node_cms_admin,node_smtp toneIndigo
```

## Components

### Public website

- [Public pages](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/(public)): `src/app/(public)`
- [Content views](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/components/pages): `src/components/pages`
- [Language support](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/contexts/language-context.tsx): `src/contexts/language-context.tsx`

### CMS administration

- [CMS interface](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/cms): `src/app/cms`

### API services

- [Authentication routes](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api/auth): `src/app/api/auth`
- [Content routes](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api): `src/app/api`
- [Contact endpoint](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/app/api/contact/route.ts): `src/app/api/contact/route.ts`
- [Upload endpoints](https://github.com/dekana576/dimata-company-profile-2026/tree/main/src/app/api/upload): `src/app/api/upload`

### Shared infrastructure

- [JWT helpers](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/auth.ts): `src/lib/auth.ts`
- [File handling](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/upload.ts): `src/lib/upload.ts`
- [Email sender](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/mail.ts): `src/lib/mail.ts`
- [Database client](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/prisma.ts): `src/lib/prisma.ts`
- [DB configuration](https://github.com/dekana576/dimata-company-profile-2026/blob/main/src/lib/db-config.ts): `src/lib/db-config.ts`

### Other components

- **Website visitor**
- **CMS administrator**
- **MySQL database**
- **SMTP service**

## Connections

- Website visitor → Public pages: browses (evidence: `README.md`)
- Public pages → Content views: renders (evidence: `README.md`)
- Public pages → Language support: supports language (evidence: `src/contexts/language-context.tsx`)
- CMS administrator → CMS interface: manages content (evidence: `README.md`)
- CMS interface → Authentication routes: signs in
- CMS interface → Content routes: manages content
- Authentication routes → JWT helpers: verifies tokens (evidence: `src/app/api/auth/login/route.ts`)
- Content routes → JWT helpers: checks access (evidence: `src/app/api/gallery/route.ts`)
- Content routes → Database client: queries content (evidence: `src/app/api/project/route.ts`)
- Contact endpoint → Email sender: sends message (evidence: `src/app/api/contact/route.ts`)
- Email sender → SMTP service: delivers email (evidence: `README.md`)
- Upload endpoints → JWT helpers: checks access (evidence: `src/app/api/upload/route.ts`)
- Upload endpoints → File handling: saves files (evidence: `src/app/api/upload/route.ts`)
- Database client → DB configuration: parses connection (evidence: `src/lib/prisma.ts`)
- Database client → MySQL database: queries database (evidence: `README.md`)
