# dotnodepoint-dnp/dnp-tech-company architecture

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

- Interactive diagram: https://gitdiagram.com/dotnodepoint-dnp/dnp-tech-company
- Repository: https://github.com/dotnodepoint-dnp/dnp-tech-company

## Overview

This is a company website and inquiry-management application: visitors explore services and careers, then submit contact, meeting, partnership, or job-application information; administrators manage those records and site content. The runtime is organized around Next.js pages and API routes, with MongoDB models behind the routes and cookie/JWT authentication for administrative operations. The provided excerpts show selected API-to-model and page-component relationships; several admin and API implementations are indexed but unsampled, so their connections are left unverified.

Main entry points: [`app/admin`](https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/admin) (Admin console), [`app/config/db.js`](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/db.js) (MongoDB connection), [`app/api/applications/route.js`](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/applications/route.js) (Application endpoints), [`app/careers/page.tsx`](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/careers/page.tsx) (Careers page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public website"]
  node_home["Home<br/>[page.tsx]"]
  node_about["About<br/>[page.tsx]"]
  node_services["Services<br/>[page.tsx]"]
  node_products["Products<br/>[page.tsx]"]
  node_careers["Careers page<br/>[page.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_intake["Visitor requests"]
  node_contact["Contact form<br/>[page.tsx]"]
  node_meetingpage["Meeting request<br/>[page.tsx]"]
  node_partnershippage["Partnership request<br/>[page.tsx]"]
  node_applicationform["Job application<br/>[page.tsx]"]
end

subgraph group_admin["Administration"]
  node_adminui["Admin console"]
  node_authui["User login<br/>[page.tsx]"]
  node_dashboard["User dashboard<br/>[page.tsx]"]
end

subgraph group_backend["API and persistence"]
  node_api["Next API routes"]
  node_authapi["Authentication routes"]
  node_adminapi["Admin routes"]
  node_dbconn["MongoDB connection<br/>[db.js]"]
  node_careerapi["Career endpoints<br/>[route.js]"]
  node_applicationapi["Application endpoints<br/>[route.js]"]
  node_meetingapi["Meeting endpoints<br/>[route.js]"]
  node_partnershipapi["Partnership endpoint<br/>[route.js]"]
  node_queryapi["Query endpoints<br/>[route.js]"]
  node_productapi["Product endpoints<br/>[route.js]"]
  node_careerstore[("Career records<br/>[Career.js]")]
  node_applicationstore[("Applications<br/>[Application.js]")]
  node_meetingstore[("Meeting requests<br/>[Meeting.js]")]
  node_partnershipstore[("Partnership requests<br/>[Partnership.js]")]
  node_querystore[("Contact queries<br/>[Query.js]")]
  node_productstore[("Product records<br/>[product.js]")]
  node_adminstore[("Admin and user records<br/>[Admin.js]")]
end

node_visitor(("Site visitor"))
node_adminuser(("Administrator"))

node_visitor -->|"visits"| node_home
node_visitor -->|"visits"| node_about
node_visitor -->|"visits"| node_services
node_visitor -.->|"visits"| node_products
node_visitor -->|"visits"| node_careers
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_footer
node_about -->|"renders"| node_navbar
node_about -->|"renders"| node_footer
node_services -->|"renders"| node_navbar
node_services -->|"renders"| node_footer
node_careers -->|"renders"| node_navbar
node_careers -->|"renders"| node_footer
node_visitor -->|"submits query"| node_contact
node_visitor -.->|"requests meeting"| node_meetingpage
node_visitor -.->|"requests partnership"| node_partnershippage
node_careers -->|"opens form"| node_applicationform
node_applicationform -.->|"submits application"| node_applicationapi
node_contact -.->|"posts query"| node_queryapi
node_meetingpage -.->|"posts request"| node_meetingapi
node_partnershippage -.->|"posts inquiry"| node_partnershipapi
node_adminuser -.->|"manages content"| node_adminui
node_adminuser -.->|"signs in"| node_authui
node_authui -.->|"authenticates"| node_authapi
node_adminui -.->|"uses routes"| node_adminapi
node_adminui -.->|"manages vacancies"| node_careerapi
node_adminui -.->|"reviews applications"| node_applicationapi
node_adminui -.->|"manages meetings"| node_meetingapi
node_adminui -.->|"manages inquiries"| node_partnershipapi
node_adminui -.->|"manages queries"| node_queryapi
node_adminui -.->|"manages products"| node_productapi
node_dashboard -.->|"uses session"| node_authapi
node_careerapi -->|"connects"| node_dbconn
node_careerapi -->|"reads and writes"| node_careerstore
node_applicationapi -->|"connects"| node_dbconn
node_applicationapi -->|"checks vacancy"| node_careerstore
node_applicationapi -->|"reads and writes"| node_applicationstore
node_meetingapi -->|"connects"| node_dbconn
node_meetingapi -->|"reads and writes"| node_meetingstore
node_partnershipapi -->|"connects"| node_dbconn
node_partnershipapi -->|"reads and writes"| node_partnershipstore
node_queryapi -->|"connects"| node_dbconn
node_queryapi -->|"reads and writes"| node_querystore
node_productapi -->|"connects"| node_dbconn
node_productapi -.->|"uses records"| node_productstore
node_adminapi -.->|"uses connection"| node_dbconn
node_authapi -.->|"uses accounts"| node_adminstore

click node_home "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/page.tsx"
click node_about "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/about/page.tsx"
click node_services "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/services/page.tsx"
click node_products "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/products/page.tsx"
click node_careers "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/careers/page.tsx"
click node_navbar "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/components/Navbar.tsx"
click node_footer "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/components/Footer.tsx"
click node_contact "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/contact/page.tsx"
click node_meetingpage "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/meeting/page.tsx"
click node_partnershippage "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/partnership/page.tsx"
click node_applicationform "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/careers/page.tsx"
click node_adminui "https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/admin"
click node_authui "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/login/page.tsx"
click node_dashboard "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/dashboard/page.tsx"
click node_api "https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/api"
click node_authapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/api/auth"
click node_adminapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/api/admin"
click node_dbconn "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/db.js"
click node_careerapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/careers/route.js"
click node_applicationapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/applications/route.js"
click node_meetingapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/meetings/route.js"
click node_partnershipapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/partnership/route.js"
click node_queryapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/queries/route.js"
click node_productapi "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/products/route.js"
click node_careerstore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Career.js"
click node_applicationstore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Application.js"
click node_meetingstore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Meeting.js"
click node_partnershipstore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Partnership.js"
click node_querystore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Query.js"
click node_productstore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/product.js"
click node_adminstore "https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Admin.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_about,node_services,node_products,node_careers,node_navbar,node_footer toneBlue
class node_contact,node_meetingpage,node_partnershippage,node_applicationform toneAmber
class node_adminui,node_authui,node_dashboard toneMint
class node_api,node_authapi,node_adminapi,node_dbconn,node_careerapi,node_applicationapi,node_meetingapi,node_partnershipapi,node_queryapi,node_productapi,node_careerstore,node_applicationstore,node_meetingstore,node_partnershipstore,node_querystore,node_productstore,node_adminstore toneRose
class node_visitor,node_adminuser toneIndigo
```

## Components

### Public website

- [Home](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/page.tsx): `app/page.tsx`
- [About](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/about/page.tsx): `app/about/page.tsx`
- [Services](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/services/page.tsx): `app/services/page.tsx`
- [Products](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/products/page.tsx): `app/products/page.tsx`
- [Careers page](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/careers/page.tsx): `app/careers/page.tsx`
- [Navigation](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/components/Navbar.tsx): `app/components/Navbar.tsx`
- [Footer](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/components/Footer.tsx): `app/components/Footer.tsx`

### Visitor requests

- [Contact form](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Meeting request](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/meeting/page.tsx): `app/meeting/page.tsx`
- [Partnership request](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/partnership/page.tsx): `app/partnership/page.tsx`
- [Job application](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/careers/page.tsx): `app/careers/page.tsx`

### Administration

- [Admin console](https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/admin): `app/admin`
- [User login](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/login/page.tsx): `app/login/page.tsx`
- [User dashboard](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/dashboard/page.tsx): `app/dashboard/page.tsx`

### API and persistence

- [Next API routes](https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/api): `app/api`
- [Authentication routes](https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/api/auth): `app/api/auth`
- [Admin routes](https://github.com/dotnodepoint-dnp/dnp-tech-company/tree/main/app/api/admin): `app/api/admin`
- [MongoDB connection](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/db.js): `app/config/db.js`
- [Career endpoints](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/careers/route.js): `app/api/careers/route.js`
- [Application endpoints](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/applications/route.js): `app/api/applications/route.js`
- [Meeting endpoints](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/meetings/route.js): `app/api/meetings/route.js`
- [Partnership endpoint](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/partnership/route.js): `app/api/partnership/route.js`
- [Query endpoints](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/queries/route.js): `app/api/queries/route.js`
- [Product endpoints](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/api/products/route.js): `app/api/products/route.js`
- [Career records](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Career.js): `app/config/models/Career.js`
- [Applications](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Application.js): `app/config/models/Application.js`
- [Meeting requests](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Meeting.js): `app/config/models/Meeting.js`
- [Partnership requests](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Partnership.js): `app/config/models/Partnership.js`
- [Contact queries](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Query.js): `app/config/models/Query.js`
- [Product records](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/product.js): `app/config/models/product.js`
- [Admin and user records](https://github.com/dotnodepoint-dnp/dnp-tech-company/blob/main/app/config/models/Admin.js): `app/config/models/Admin.js`

### Other components

- **Site visitor**
- **Administrator**

## Connections

- Site visitor → Home: visits (evidence: `app/page.tsx`)
- Site visitor → About: visits (evidence: `app/about/page.tsx`)
- Site visitor → Services: visits (evidence: `app/services/page.tsx`)
- Site visitor → Products: visits
- Site visitor → Careers page: visits (evidence: `app/careers/page.tsx`)
- Home → Navigation: renders (evidence: `app/page.tsx`)
- Home → Footer: renders (evidence: `app/page.tsx`)
- About → Navigation: renders (evidence: `app/about/page.tsx`)
- About → Footer: renders (evidence: `app/about/page.tsx`)
- Services → Navigation: renders (evidence: `app/services/page.tsx`)
- Services → Footer: renders (evidence: `app/services/page.tsx`)
- Careers page → Navigation: renders (evidence: `app/careers/page.tsx`)
- Careers page → Footer: renders (evidence: `app/careers/page.tsx`)
- Site visitor → Contact form: submits query (evidence: `app/contact/page.tsx`)
- Site visitor → Meeting request: requests meeting
- Site visitor → Partnership request: requests partnership
- Careers page → Job application: opens form (evidence: `app/careers/page.tsx`)
- Job application → Application endpoints: submits application
- Contact form → Query endpoints: posts query
- Meeting request → Meeting endpoints: posts request
- Partnership request → Partnership endpoint: posts inquiry
- Administrator → Admin console: manages content
- Administrator → User login: signs in
- User login → Authentication routes: authenticates
- Admin console → Admin routes: uses routes
- Admin console → Career endpoints: manages vacancies
- Admin console → Application endpoints: reviews applications
- Admin console → Meeting endpoints: manages meetings
- Admin console → Partnership endpoint: manages inquiries
- Admin console → Query endpoints: manages queries
- Admin console → Product endpoints: manages products
- User dashboard → Authentication routes: uses session
- Career endpoints → MongoDB connection: connects (evidence: `app/api/careers/route.js`)
- Career endpoints → Career records: reads and writes (evidence: `app/api/careers/route.js`)
- Application endpoints → MongoDB connection: connects (evidence: `app/api/applications/route.js`)
- Application endpoints → Career records: checks vacancy (evidence: `app/api/applications/route.js`)
- Application endpoints → Applications: reads and writes (evidence: `app/api/applications/route.js`)
- Meeting endpoints → MongoDB connection: connects (evidence: `app/api/meetings/route.js`)
- Meeting endpoints → Meeting requests: reads and writes (evidence: `app/api/meetings/route.js`)
- Partnership endpoint → MongoDB connection: connects (evidence: `app/api/partnership/route.js`)
- Partnership endpoint → Partnership requests: reads and writes (evidence: `app/api/partnership/route.js`)
- Query endpoints → MongoDB connection: connects (evidence: `app/api/queries/route.js`)
- Query endpoints → Contact queries: reads and writes (evidence: `app/api/queries/route.js`)
- Product endpoints → MongoDB connection: connects (evidence: `app/api/products/route.js`)
- Product endpoints → Product records: uses records
- Admin routes → MongoDB connection: uses connection
- Authentication routes → Admin and user records: uses accounts
