# mukhamadazistholib/running-journey architecture

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

- Interactive diagram: https://gitdiagram.com/mukhamadazistholib/running-journey
- Repository: https://github.com/mukhamadazistholib/running-journey

## Overview

This is a browser-based running-events dashboard with an accompanying admin page. The main user flow loads event and encouragement data, then presents event todos, a countdown, reminders, progress statistics and shareable images. Administrators authenticate and manage events through the same configured web endpoint. The excerpts establish these client-side responsibilities and endpoint calls; they do not expose the server implementation, so its internals are represented only as an external service.

Main entry points: [`js/main.js`](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js) (Dashboard runtime), [`js/admin/admin.js`](https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js) (Admin runtime), [`js/config.js`](https://github.com/mukhamadazistholib/running-journey/blob/master/js/config.js) (Endpoint configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Runner dashboard"]
  node_main["Dashboard runtime<br/>[main.js]"]
  node_profile["Profile and theme<br/>[main.js]"]
  node_eventview["Event list and countdown<br/>[main.js]"]
  node_reminders["Event reminders<br/>[main.js]"]
  node_progress["Progress statistics<br/>[main.js]"]
  node_sharing["Image sharing<br/>[main.js]"]
  node_encouragement["Encouragement stream<br/>[main.js]"]
end

subgraph group_admin["Event administration"]
  node_adminapp["Admin runtime<br/>[admin.js]"]
  node_auth["Admin authentication<br/>[admin.js]"]
  node_eventmanage["Event management<br/>[admin.js]"]
end

subgraph group_integration["Remote data"]
  node_config["Endpoint configuration<br/>[config.js]"]
end

node_runner(("Runner"))
node_adminuser(("Administrator"))
node_service{{"Events web service"}}

node_runner -->|"uses"| node_main
node_main -->|"reads settings"| node_config
node_main -->|"fetches events"| node_service
node_main -->|"renders events"| node_eventview
node_main -->|"starts stream"| node_encouragement
node_eventview -->|"activates"| node_reminders
node_main -->|"initializes"| node_profile
node_main -->|"computes"| node_progress
node_progress -->|"generates image"| node_sharing
node_adminuser -->|"uses"| node_adminapp
node_adminapp -->|"reads settings"| node_config
node_adminapp -->|"handles login"| node_auth
node_auth -->|"checks credentials"| node_service
node_adminapp -->|"loads and edits"| node_eventmanage
node_eventmanage -->|"sends event requests"| node_service

click node_main "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_profile "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_eventview "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_reminders "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_progress "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_sharing "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_encouragement "https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js"
click node_adminapp "https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js"
click node_auth "https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js"
click node_eventmanage "https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js"
click node_config "https://github.com/mukhamadazistholib/running-journey/blob/master/js/config.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_main,node_profile,node_eventview,node_reminders,node_progress,node_sharing,node_encouragement toneBlue
class node_adminapp,node_auth,node_eventmanage toneAmber
class node_config toneMint
class node_runner,node_adminuser,node_service toneIndigo
```

## Components

### Runner dashboard

- [Dashboard runtime](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`
- [Profile and theme](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`
- [Event list and countdown](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`
- [Event reminders](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`
- [Progress statistics](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`
- [Image sharing](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`
- [Encouragement stream](https://github.com/mukhamadazistholib/running-journey/blob/master/js/main.js): `js/main.js`

### Event administration

- [Admin runtime](https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js): `js/admin/admin.js`
- [Admin authentication](https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js): `js/admin/admin.js`
- [Event management](https://github.com/mukhamadazistholib/running-journey/blob/master/js/admin/admin.js): `js/admin/admin.js`

### Remote data

- [Endpoint configuration](https://github.com/mukhamadazistholib/running-journey/blob/master/js/config.js): `js/config.js`

### Other components

- **Runner**
- **Administrator**
- **Events web service**

## Connections

- Runner → Dashboard runtime: uses
- Dashboard runtime → Endpoint configuration: reads settings (evidence: `js/main.js`)
- Dashboard runtime → Events web service: fetches events (evidence: `js/main.js`)
- Dashboard runtime → Event list and countdown: renders events (evidence: `js/main.js`)
- Dashboard runtime → Encouragement stream: starts stream (evidence: `js/main.js`)
- Event list and countdown → Event reminders: activates (evidence: `js/main.js`)
- Dashboard runtime → Profile and theme: initializes (evidence: `js/main.js`)
- Dashboard runtime → Progress statistics: computes (evidence: `js/main.js`)
- Progress statistics → Image sharing: generates image (evidence: `js/main.js`)
- Administrator → Admin runtime: uses
- Admin runtime → Endpoint configuration: reads settings (evidence: `js/admin/admin.js`)
- Admin runtime → Admin authentication: handles login (evidence: `js/admin/admin.js`)
- Admin authentication → Events web service: checks credentials (evidence: `js/admin/admin.js`)
- Admin runtime → Event management: loads and edits (evidence: `js/admin/admin.js`)
- Event management → Events web service: sends event requests (evidence: `js/admin/admin.js`)
