# jamescmont907/csc330-montgomeryj9 architecture

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

- Interactive diagram: https://gitdiagram.com/jamescmont907/csc330-montgomeryj9
- Repository: https://github.com/jamescmont907/csc330-montgomeryj9

## Overview

This repository is a collection of CSC330 projects and assignments, not one integrated application. Its main workflows are separate: visitors browse a personal website and can submit a contact form that triggers email; visitors browse a resume site; API clients manage in-memory student records; and visitors use a minimal Hello World site. The graph keeps those products separate. Route-to-template and static-asset links follow the shown Express configuration and render calls; the README gives no further integration details.

Main entry points: [`projects/personal-website/app.js`](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/app.js) (Website routes), [`assignments/resume-app/app.js`](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/assignments/resume-app/app.js) (Resume routes), [`projects/students-api/routes/students.js`](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js) (Student routes), [`projects/personal-website/public/js/contact.js`](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/public/js/contact.js) (Contact form UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_personal["Personal Website"]
  node_contact_ui["Contact form UI<br/>[contact.js]"]
  node_website_server["Website routes<br/>[app.js]"]
  node_website_views["Page templates"]
  node_website_assets["Static assets<br/>[style.css]"]
  node_email_service["Email service<br/>[emailservice.js]"]
end

subgraph group_resume["Resume App"]
  node_resume_server["Resume routes<br/>[app.js]"]
  node_resume_views["Resume templates"]
  node_resume_assets["Static styles<br/>[style.css]"]
end

subgraph group_students["Students API"]
  node_api_server["API server<br/>[app.js]"]
  node_student_routes["Student routes<br/>[students.js]"]
  node_student_validation["Request validation<br/>[students.js]"]
  node_student_store[("In-memory students<br/>[students.js]")]
end

subgraph group_hello["Hello World"]
  node_hello_server["Hello World routes<br/>[app.js]"]
end

node_visitor(("Site visitor"))
node_smtp{{"SMTP service"}}
node_api_client(("API client"))
node_hello_visitor(("Site visitor"))

node_visitor -->|"requests pages"| node_website_server
node_website_server -->|"renders pages"| node_website_views
node_website_server -->|"serves assets"| node_website_assets
node_visitor -->|"submits form"| node_contact_ui
node_contact_ui -->|"posts contact data"| node_website_server
node_website_server -->|"sends contact email"| node_email_service
node_email_service -->|"sends email"| node_smtp
node_visitor -->|"requests pages"| node_resume_server
node_resume_server -->|"renders pages"| node_resume_views
node_resume_server -->|"serves assets"| node_resume_assets
node_api_client -->|"sends requests"| node_api_server
node_api_server -->|"mounts router"| node_student_routes
node_student_routes -->|"checks inputs"| node_student_validation
node_student_routes -->|"reads and mutates"| node_student_store
node_hello_visitor -->|"requests pages"| node_hello_server

click node_contact_ui "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/public/js/contact.js"
click node_website_server "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/app.js"
click node_website_views "https://github.com/jamescmont907/csc330-montgomeryj9/tree/main/projects/personal-website/views"
click node_website_assets "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/public/css/style.css"
click node_email_service "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/utils/emailservice.js"
click node_resume_server "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/assignments/resume-app/app.js"
click node_resume_views "https://github.com/jamescmont907/csc330-montgomeryj9/tree/main/assignments/resume-app/views"
click node_resume_assets "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/assignments/resume-app/public/css/style.css"
click node_api_server "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/app.js"
click node_student_routes "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js"
click node_student_validation "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js"
click node_student_store "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js"
click node_hello_server "https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/hello-world/app.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_contact_ui,node_website_server,node_website_views,node_website_assets,node_email_service,node_api_client toneBlue
class node_resume_server,node_resume_views,node_resume_assets toneAmber
class node_api_server,node_student_routes,node_student_validation,node_student_store toneMint
class node_hello_server toneRose
class node_visitor,node_smtp,node_hello_visitor toneIndigo
```

## Components

### Personal Website

- [Contact form UI](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/public/js/contact.js): `projects/personal-website/public/js/contact.js`
- [Website routes](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/app.js): `projects/personal-website/app.js`
- [Page templates](https://github.com/jamescmont907/csc330-montgomeryj9/tree/main/projects/personal-website/views): `projects/personal-website/views`
- [Static assets](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/public/css/style.css): `projects/personal-website/public/css/style.css`
- [Email service](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/personal-website/utils/emailservice.js): `projects/personal-website/utils/emailservice.js`

### Resume App

- [Resume routes](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/assignments/resume-app/app.js): `assignments/resume-app/app.js`
- [Resume templates](https://github.com/jamescmont907/csc330-montgomeryj9/tree/main/assignments/resume-app/views): `assignments/resume-app/views`
- [Static styles](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/assignments/resume-app/public/css/style.css): `assignments/resume-app/public/css/style.css`

### Students API

- [API server](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/app.js): `projects/students-api/app.js`
- [Student routes](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js): `projects/students-api/routes/students.js`
- [Request validation](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js): `projects/students-api/routes/students.js`
- [In-memory students](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/students-api/routes/students.js): `projects/students-api/routes/students.js`

### Hello World

- [Hello World routes](https://github.com/jamescmont907/csc330-montgomeryj9/blob/main/projects/hello-world/app.js): `projects/hello-world/app.js`

### Other components

- **Site visitor**
- **SMTP service**
- **API client**
- **Site visitor**

## Connections

- Site visitor → Website routes: requests pages (evidence: `projects/personal-website/app.js`)
- Website routes → Page templates: renders pages (evidence: `projects/personal-website/app.js`)
- Website routes → Static assets: serves assets (evidence: `projects/personal-website/app.js`)
- Site visitor → Contact form UI: submits form (evidence: `projects/personal-website/public/js/contact.js`)
- Contact form UI → Website routes: posts contact data (evidence: `projects/personal-website/public/js/contact.js`)
- Website routes → Email service: sends contact email (evidence: `projects/personal-website/app.js`)
- Email service → SMTP service: sends email (evidence: `projects/personal-website/utils/emailservice.js`)
- Site visitor → Resume routes: requests pages (evidence: `assignments/resume-app/app.js`)
- Resume routes → Resume templates: renders pages (evidence: `assignments/resume-app/app.js`)
- Resume routes → Static styles: serves assets (evidence: `assignments/resume-app/app.js`)
- API client → API server: sends requests (evidence: `projects/students-api/app.js`)
- API server → Student routes: mounts router (evidence: `projects/students-api/app.js`)
- Student routes → Request validation: checks inputs (evidence: `projects/students-api/routes/students.js`)
- Student routes → In-memory students: reads and mutates (evidence: `projects/students-api/routes/students.js`)
- Site visitor → Hello World routes: requests pages (evidence: `projects/hello-world/app.js`)
