# ganeshreddy333/nvs-international-services architecture

> Architecture diagram of the GitHub repository ganeshreddy333/nvs-international-services, 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/ganeshreddy333/nvs-international-services
- Repository: https://github.com/ganeshreddy333/nvs-international-services

## Overview

NVS International Services is a multi-page conference information and marketing website, with an optional backend that lets administrators share content changes across visitors. Visitors browse the static pages, which use a shared content model and rendering code; they can also submit enquiries. Administrators authenticate, edit site content and conference-related material, and review enquiries. The backend exposes those operations through an API backed by MySQL; without it, the site can use built-in defaults and browser storage. Relationships for unsampled page capabilities follow the README; source excerpts show selected API, storage, and form behavior.

Main entry points: [`frontend/site.js`](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/site.js) (Content Renderer), [`frontend/api.js`](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/api.js) (Frontend API Client), [`backend/server.js`](https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/server.js) (Express API), [`backend/db.js`](https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/db.js) (MySQL Connection Pool)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Website"]
  node_home["Home Page<br/>[index.html]"]
  node_info_pages["Information Pages<br/>[about.html]"]
  node_conference_pages["Conference Pages<br/>[conferences.html]"]
  node_sponsor_gallery["Sponsors &amp; Gallery<br/>[sponsors.html]"]
  node_site_render["Content Renderer<br/>[site.js]"]
  node_contact["Contact Enquiries<br/>[site.js]"]
  node_seo["SEO Resources<br/>[sitemap.xml]"]
  node_styles["Responsive Styling<br/>[pages.css]"]
end

subgraph group_admin["Administration"]
  node_admin_auth["Admin Authentication<br/>[auth.js]"]
  node_admin_manager["Content &amp; Enquiry Manager<br/>[admin.js]"]
end

subgraph group_api["API Services"]
  node_api_client["Frontend API Client<br/>[api.js]"]
  node_api_server["Express API<br/>[server.js]"]
end

subgraph group_data["Persistence"]
  node_seed["Initial Data Setup<br/>[seed.js]"]
  node_db_pool["MySQL Connection Pool<br/>[db.js]"]
  node_mysql[("MySQL Database")]
  node_browser_storage[("Browser Storage")]
end

node_visitor(("Visitor"))
node_administrator(("Administrator"))

node_visitor -->|"browses"| node_home
node_visitor -->|"browses"| node_info_pages
node_visitor -->|"browses"| node_conference_pages
node_visitor -->|"browses"| node_sponsor_gallery
node_home -->|"renders via"| node_site_render
node_info_pages -->|"renders via"| node_site_render
node_conference_pages -->|"renders via"| node_site_render
node_sponsor_gallery -->|"renders via"| node_site_render
node_visitor -->|"submits"| node_contact
node_contact -->|"posts enquiry"| node_api_client
node_administrator -->|"signs in"| node_admin_auth
node_admin_auth -->|"authenticates via"| node_api_client
node_administrator -->|"manages content"| node_admin_manager
node_admin_manager -->|"uses API"| node_api_client
node_site_render -->|"reads and saves"| node_browser_storage
node_api_client -->|"caches content"| node_browser_storage
node_api_client -->|"calls endpoints"| node_api_server
node_api_server -->|"queries through"| node_db_pool
node_db_pool -->|"connects to"| node_mysql
node_seed -->|"initializes records"| node_db_pool
node_api_server -->|"stores content and enquiries"| node_mysql
node_site_render -->|"supports discovery"| node_seo
node_site_render -->|"styled by"| node_styles

click node_home "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/index.html"
click node_info_pages "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/about.html"
click node_conference_pages "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/conferences.html"
click node_sponsor_gallery "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/sponsors.html"
click node_site_render "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/site.js"
click node_contact "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/site.js"
click node_seo "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/sitemap.xml"
click node_styles "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/pages.css"
click node_admin_auth "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/auth.js"
click node_admin_manager "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/admin.js"
click node_api_client "https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/api.js"
click node_api_server "https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/server.js"
click node_seed "https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/seed.js"
click node_db_pool "https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/db.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_info_pages,node_conference_pages,node_sponsor_gallery,node_site_render,node_contact,node_seo,node_styles toneBlue
class node_admin_auth,node_admin_manager toneAmber
class node_api_client,node_api_server toneMint
class node_seed,node_db_pool,node_mysql,node_browser_storage toneRose
class node_visitor,node_administrator toneIndigo
```

## Components

### Public Website

- [Home Page](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/index.html): `frontend/index.html`
- [Information Pages](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/about.html): `frontend/about.html`
- [Conference Pages](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/conferences.html): `frontend/conferences.html`
- [Sponsors & Gallery](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/sponsors.html): `frontend/sponsors.html`
- [Content Renderer](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/site.js): `frontend/site.js`
- [Contact Enquiries](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/site.js): `frontend/site.js`
- [SEO Resources](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/sitemap.xml): `frontend/sitemap.xml`
- [Responsive Styling](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/pages.css): `frontend/pages.css`

### Administration

- [Admin Authentication](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/auth.js): `frontend/auth.js`
- [Content & Enquiry Manager](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/admin.js): `frontend/admin.js`

### API Services

- [Frontend API Client](https://github.com/ganeshreddy333/nvs-international-services/blob/main/frontend/api.js): `frontend/api.js`
- [Express API](https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/server.js): `backend/server.js`

### Persistence

- [Initial Data Setup](https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/seed.js): `backend/seed.js`
- [MySQL Connection Pool](https://github.com/ganeshreddy333/nvs-international-services/blob/main/backend/db.js): `backend/db.js`
- **MySQL Database**
- **Browser Storage**

### Other components

- **Visitor**
- **Administrator**

## Connections

- Visitor → Home Page: browses (evidence: `README.md`)
- Visitor → Information Pages: browses (evidence: `README.md`)
- Visitor → Conference Pages: browses (evidence: `README.md`)
- Visitor → Sponsors & Gallery: browses (evidence: `README.md`)
- Home Page → Content Renderer: renders via (evidence: `README.md`)
- Information Pages → Content Renderer: renders via (evidence: `README.md`)
- Conference Pages → Content Renderer: renders via (evidence: `README.md`)
- Sponsors & Gallery → Content Renderer: renders via (evidence: `README.md`)
- Visitor → Contact Enquiries: submits (evidence: `frontend/site.js`)
- Contact Enquiries → Frontend API Client: posts enquiry (evidence: `frontend/site.js`)
- Administrator → Admin Authentication: signs in (evidence: `frontend/auth.js`)
- Admin Authentication → Frontend API Client: authenticates via (evidence: `frontend/auth.js`)
- Administrator → Content & Enquiry Manager: manages content (evidence: `README.md`)
- Content & Enquiry Manager → Frontend API Client: uses API (evidence: `README.md`)
- Content Renderer → Browser Storage: reads and saves (evidence: `frontend/site.js`)
- Frontend API Client → Browser Storage: caches content (evidence: `frontend/api.js`)
- Frontend API Client → Express API: calls endpoints (evidence: `frontend/api.js`)
- Express API → MySQL Connection Pool: queries through (evidence: `backend/server.js`)
- MySQL Connection Pool → MySQL Database: connects to (evidence: `backend/db.js`)
- Initial Data Setup → MySQL Connection Pool: initializes records (evidence: `backend/seed.js`)
- Express API → MySQL Database: stores content and enquiries (evidence: `backend/server.js`)
- Content Renderer → SEO Resources: supports discovery (evidence: `README.md`)
- Content Renderer → Responsive Styling: styled by (evidence: `README.md`)
