# balaji-anthonyraj/course-registration-system-frontend architecture

> Architecture diagram of the GitHub repository balaji-anthonyraj/course-registration-system-frontend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/balaji-anthonyraj/course-registration-system-frontend
- Repository: https://github.com/balaji-anthonyraj/course-registration-system-frontend

## Overview

This is a small browser-based course catalog and enrollment interface. Its principal visible workflow is browsing available courses and viewing enrolled students; the filenames also indicate registration and a landing page. The sampled JavaScript fetches course and enrollment data from a localhost API and renders each response into a table. HTML files were not excerpted, so page-to-script wiring and registration behavior cannot be confirmed; the graph keeps those pages distinct rather than assuming connections.

Main entry points: [`myscript.js`](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/myscript.js) (Course data renderer), [`index.html`](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/index.html) (Landing page), [`availcourses.html`](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/availcourses.html) (Course catalog page), [`register.html`](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/register.html) (Registration page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Browser pages"]
  node_home["Landing page<br/>[index.html]"]
  node_catalog["Course catalog page<br/>[availcourses.html]"]
  node_registration["Registration page<br/>[register.html]"]
  node_enrolled["Enrolled students page<br/>[enrolled.html]"]
end

subgraph group_client["Client data"]
  node_client["Course data renderer<br/>[myscript.js]"]
end

node_visitor(("Visitor"))
node_courses_api{{"Courses API"}}
node_enrollment_api{{"Enrollment API"}}

node_client -->|"fetches courses"| node_courses_api
node_client -->|"fetches enrollments"| node_enrollment_api
node_visitor -.->|"visits"| node_home
node_visitor -.->|"visits"| node_catalog
node_visitor -.->|"visits"| node_registration
node_visitor -.->|"visits"| node_enrolled

click node_home "https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/index.html"
click node_catalog "https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/availcourses.html"
click node_registration "https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/register.html"
click node_enrolled "https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/enrolled.html"
click node_client "https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/myscript.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_catalog,node_registration,node_enrolled toneBlue
class node_client toneAmber
class node_visitor toneIndigo
class node_courses_api,node_enrollment_api toneMint
```

## Components

### Browser pages

- [Landing page](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/index.html): `index.html`
- [Course catalog page](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/availcourses.html): `availcourses.html`
- [Registration page](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/register.html): `register.html`
- [Enrolled students page](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/enrolled.html): `enrolled.html`

### Client data

- [Course data renderer](https://github.com/balaji-anthonyraj/course-registration-system-frontend/blob/main/myscript.js): `myscript.js`

### Other components

- **Visitor**
- **Courses API**
- **Enrollment API**

## Connections

- Course data renderer → Courses API: fetches courses (evidence: `myscript.js`)
- Course data renderer → Enrollment API: fetches enrollments (evidence: `myscript.js`)
- Visitor → Landing page: visits
- Visitor → Course catalog page: visits
- Visitor → Registration page: visits
- Visitor → Enrolled students page: visits
