# lordm121/aramproject architecture

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

- Interactive diagram: https://gitdiagram.com/lordm121/aramproject
- Repository: https://github.com/lordm121/aramproject

## Overview

This is a small Express/EJS web application. Its runtime starts by connecting to MongoDB and configuring an HTTP server; requests to `/` are handled by a route that renders the `index.ejs` view. The repository also defines a Stage5 timetable schema, but the sampled code does not show it being registered with or used by a route. The view and schema are included as product components; no connection between them is inferred.

Main entry points: [`src/routes/index.js`](https://github.com/lordm121/aramproject/blob/main/src/routes/index.js) (Home route), [`index.js`](https://github.com/lordm121/aramproject/blob/main/index.js) (Application entry), [`src/dashboard.js`](https://github.com/lordm121/aramproject/blob/main/src/dashboard.js) (HTTP server setup), [`src/database/connect.js`](https://github.com/lordm121/aramproject/blob/main/src/database/connect.js) (MongoDB connection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Web runtime"]
  node_entry["Application entry<br/>[index.js]"]
  node_server["HTTP server setup<br/>[dashboard.js]"]
  node_routes["Home route<br/>[index.js]"]
  node_view["Index view<br/>[index.ejs]"]
end

subgraph group_data["MongoDB data"]
  node_dbconnect["MongoDB connection<br/>[connect.js]"]
  node_mongodb[("MongoDB")]
  node_stage5["Stage5 timetable schema<br/>[stage5.js]"]
end

node_user(("Web user"))

node_entry -->|"calls"| node_dbconnect
node_entry -->|"starts"| node_server
node_server -->|"mounts"| node_routes
node_user -->|"requests home"| node_routes
node_routes -->|"renders"| node_view
node_dbconnect -->|"connects"| node_mongodb

click node_entry "https://github.com/lordm121/aramproject/blob/main/index.js"
click node_server "https://github.com/lordm121/aramproject/blob/main/src/dashboard.js"
click node_routes "https://github.com/lordm121/aramproject/blob/main/src/routes/index.js"
click node_view "https://github.com/lordm121/aramproject/blob/main/src/views/index.ejs"
click node_dbconnect "https://github.com/lordm121/aramproject/blob/main/src/database/connect.js"
click node_stage5 "https://github.com/lordm121/aramproject/blob/main/src/database/stage5.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_entry,node_server,node_routes,node_view,node_user toneBlue
class node_dbconnect,node_mongodb,node_stage5 toneAmber
```

## Components

### Web runtime

- [Application entry](https://github.com/lordm121/aramproject/blob/main/index.js): `index.js`
- [HTTP server setup](https://github.com/lordm121/aramproject/blob/main/src/dashboard.js): `src/dashboard.js`
- [Home route](https://github.com/lordm121/aramproject/blob/main/src/routes/index.js): `src/routes/index.js`
- [Index view](https://github.com/lordm121/aramproject/blob/main/src/views/index.ejs): `src/views/index.ejs`

### MongoDB data

- [MongoDB connection](https://github.com/lordm121/aramproject/blob/main/src/database/connect.js): `src/database/connect.js`
- **MongoDB**
- [Stage5 timetable schema](https://github.com/lordm121/aramproject/blob/main/src/database/stage5.js): `src/database/stage5.js`

### Other components

- **Web user**

## Connections

- Application entry → MongoDB connection: calls (evidence: `index.js`)
- Application entry → HTTP server setup: starts (evidence: `index.js`)
- HTTP server setup → Home route: mounts (evidence: `src/dashboard.js`)
- Web user → Home route: requests home (evidence: `src/routes/index.js`)
- Home route → Index view: renders (evidence: `src/routes/index.js`)
- MongoDB connection → MongoDB: connects (evidence: `src/database/connect.js`)
