# mark-ange/campus-event-finder-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/mark-ange/campus-event-finder-frontend
- Repository: https://github.com/mark-ange/campus-event-finder-frontend

## Overview

This repository is the Angular frontend for a campus event finder. The main workflow is navigating to the event dashboard, loading and sorting events, then viewing details, engaging, and registering; department administrators manage events and engagement records. Authentication and role-based route guards, profile/settings, and user administration form supporting capabilities. The sampled source shows browser-local authentication storage and HTTP event/user APIs. Some routed screens and their behavior are represented by paths and route evidence only; their internals were not sampled.

Main entry points: [`frontend/src/app/app.routes.ts`](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/app.routes.ts) (Route Configuration), [`frontend/src/app/services/auth.service.ts`](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/auth.service.ts) (Authentication and Roles), [`frontend/src/app/admin-events/admin-events.component.ts`](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/admin-events/admin-events.component.ts) (Admin Event Management), [`frontend/src/app/dashboard/dashboard.component.ts`](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/dashboard/dashboard.component.ts) (Event Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App Navigation"]
  node_bootstrap["Application Bootstrap<br/>[main.ts]"]
  node_app["Root App<br/>[app.ts]"]
  node_routes["Route Configuration<br/>[app.routes.ts]"]
end

subgraph group_identity["Identity and Users"]
  node_login["Login<br/>[login.component.ts]"]
  node_signup["Sign Up"]
  node_forgot["Password Recovery"]
  node_auth["Authentication and Roles<br/>[auth.service.ts]"]
  node_authstore[("Browser User Storage")]
  node_departments["Department Directory"]
  node_guards["Route Guards"]
  node_profile["Student Profile"]
  node_settings["Account Settings"]
  node_userlist["User Listing"]
  node_usercreate["User Creation"]
  node_useredit["User Editing"]
  node_userservice["User API Service<br/>[user.service.ts]"]
  node_usermodel["User Model<br/>[user.model.ts]"]
  node_messages["Messages"]
  node_notifications["Notifications"]
end

subgraph group_events["Event Discovery"]
  node_dashboard["Event Dashboard"]
  node_events["Event Catalog<br/>[event.service.ts]"]
  node_eventstore["Event Sorting and Department Scope<br/>[event-store.ts]"]
  node_engagement["Event Engagement"]
end

subgraph group_management["Event Management"]
  node_admin["Admin Event Management"]
end

node_visitor(("Visitor"))
node_backend["Campus API"]

node_visitor -->|"opens"| node_bootstrap
node_bootstrap -->|"bootstraps"| node_app
node_bootstrap -->|"provides routes"| node_routes
node_app -->|"hosts outlet"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_signup
node_routes -->|"routes to"| node_forgot
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_admin
node_routes -->|"routes to"| node_profile
node_routes -->|"routes to"| node_settings
node_routes -->|"routes to"| node_messages
node_routes -->|"routes to"| node_notifications
node_routes -->|"routes to"| node_userlist
node_routes -->|"routes to"| node_usercreate
node_routes -->|"routes to"| node_useredit
node_routes -->|"checks access"| node_guards
node_guards -->|"checks session"| node_auth
node_login -->|"authenticates"| node_auth
node_signup -->|"registers account"| node_auth
node_signup -->|"validates department"| node_departments
node_auth -->|"normalizes roles"| node_departments
node_auth -->|"reads and writes"| node_authstore
node_profile -->|"reads account"| node_auth
node_settings -->|"updates account"| node_auth
node_userlist -->|"loads users"| node_userservice
node_usercreate -->|"creates user"| node_userservice
node_useredit -->|"updates user"| node_userservice
node_userlist -->|"uses model"| node_usermodel
node_userservice -->|"types records"| node_usermodel
node_userservice -->|"calls users API"| node_backend
node_dashboard -->|"reads current user"| node_auth
node_dashboard -->|"loads events"| node_events
node_dashboard -->|"sorts events"| node_eventstore
node_dashboard -->|"loads and records engagement"| node_engagement
node_admin -->|"checks admin"| node_auth
node_admin -->|"uses department options"| node_departments
node_admin -->|"manages events"| node_events
node_admin -->|"scopes and sorts"| node_eventstore
node_admin -->|"manages registrations and comments"| node_engagement
node_events -->|"calls events API"| node_backend
node_engagement -->|"calls engagement API"| node_backend
node_eventstore -->|"normalizes department"| node_departments

click node_bootstrap "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/main.ts"
click node_app "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/app.ts"
click node_routes "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/app.routes.ts"
click node_dashboard "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/dashboard/dashboard.component.ts"
click node_login "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/log-in/login.component.ts"
click node_signup "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/sign-up/sign-up.component.ts"
click node_forgot "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/forgot-password/forgot-password.component.ts"
click node_auth "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/auth.service.ts"
click node_departments "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/department-directory.ts"
click node_guards "https://github.com/mark-ange/campus-event-finder-frontend/tree/main/frontend/src/app/guards"
click node_profile "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/student-profile/student-profile.component.ts"
click node_settings "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/settings/settings.component.ts"
click node_userlist "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/components/user-list/user-list.component.ts"
click node_usercreate "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/components/user-create/user-create.component.ts"
click node_useredit "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/components/user-edit/user-edit.component.ts"
click node_userservice "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/user.service.ts"
click node_usermodel "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/models/user.model.ts"
click node_events "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/event.service.ts"
click node_eventstore "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/event-store.ts"
click node_engagement "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/event-engagement.service.ts"
click node_admin "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/admin-events/admin-events.component.ts"
click node_messages "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/messages/messages.component.ts"
click node_notifications "https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/notifications/notifications.component.ts"

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_bootstrap,node_app,node_routes toneBlue
class node_login,node_signup,node_forgot,node_auth,node_authstore,node_departments,node_guards,node_profile,node_settings,node_userlist,node_usercreate,node_useredit,node_userservice,node_usermodel,node_messages,node_notifications toneAmber
class node_dashboard,node_events,node_eventstore,node_engagement,node_backend toneMint
class node_admin toneRose
class node_visitor toneIndigo
```

## Components

### App Navigation

- [Application Bootstrap](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/main.ts): `frontend/src/main.ts`
- [Root App](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/app.ts): `frontend/src/app/app.ts`
- [Route Configuration](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/app.routes.ts): `frontend/src/app/app.routes.ts`

### Identity and Users

- [Login](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/log-in/login.component.ts): `frontend/src/app/log-in/login.component.ts`
- [Sign Up](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/sign-up/sign-up.component.ts): `frontend/src/app/sign-up/sign-up.component.ts`
- [Password Recovery](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/forgot-password/forgot-password.component.ts): `frontend/src/app/forgot-password/forgot-password.component.ts`
- [Authentication and Roles](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/auth.service.ts): `frontend/src/app/services/auth.service.ts`
- **Browser User Storage**
- [Department Directory](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/department-directory.ts): `frontend/src/app/services/department-directory.ts`
- [Route Guards](https://github.com/mark-ange/campus-event-finder-frontend/tree/main/frontend/src/app/guards): `frontend/src/app/guards`
- [Student Profile](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/student-profile/student-profile.component.ts): `frontend/src/app/student-profile/student-profile.component.ts`
- [Account Settings](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/settings/settings.component.ts): `frontend/src/app/settings/settings.component.ts`
- [User Listing](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/components/user-list/user-list.component.ts): `frontend/src/app/components/user-list/user-list.component.ts`
- [User Creation](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/components/user-create/user-create.component.ts): `frontend/src/app/components/user-create/user-create.component.ts`
- [User Editing](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/components/user-edit/user-edit.component.ts): `frontend/src/app/components/user-edit/user-edit.component.ts`
- [User API Service](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/user.service.ts): `frontend/src/app/services/user.service.ts`
- [User Model](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/models/user.model.ts): `frontend/src/app/models/user.model.ts`
- [Messages](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/messages/messages.component.ts): `frontend/src/app/messages/messages.component.ts`
- [Notifications](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/notifications/notifications.component.ts): `frontend/src/app/notifications/notifications.component.ts`

### Event Discovery

- [Event Dashboard](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/dashboard/dashboard.component.ts): `frontend/src/app/dashboard/dashboard.component.ts`
- [Event Catalog](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/event.service.ts): `frontend/src/app/services/event.service.ts`
- [Event Sorting and Department Scope](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/event-store.ts): `frontend/src/app/services/event-store.ts`
- [Event Engagement](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/services/event-engagement.service.ts): `frontend/src/app/services/event-engagement.service.ts`

### Event Management

- [Admin Event Management](https://github.com/mark-ange/campus-event-finder-frontend/blob/main/frontend/src/app/admin-events/admin-events.component.ts): `frontend/src/app/admin-events/admin-events.component.ts`

### Other components

- **Visitor**
- **Campus API**

## Connections

- Visitor → Application Bootstrap: opens
- Application Bootstrap → Root App: bootstraps (evidence: `frontend/src/main.ts`)
- Application Bootstrap → Route Configuration: provides routes (evidence: `frontend/src/main.ts`)
- Root App → Route Configuration: hosts outlet (evidence: `frontend/src/app/app.ts`)
- Route Configuration → Login: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Sign Up: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Password Recovery: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Event Dashboard: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Admin Event Management: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Student Profile: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Account Settings: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Messages: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Notifications: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → User Listing: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → User Creation: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → User Editing: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route Configuration → Route Guards: checks access (evidence: `frontend/src/app/app.routes.ts`)
- Route Guards → Authentication and Roles: checks session (evidence: `frontend/src/app/guards/auth.guard.ts`)
- Login → Authentication and Roles: authenticates (evidence: `frontend/src/app/log-in/login.component.ts`)
- Sign Up → Authentication and Roles: registers account (evidence: `frontend/src/app/sign-up/sign-up.component.ts`)
- Sign Up → Department Directory: validates department (evidence: `frontend/src/app/sign-up/sign-up.component.ts`)
- Authentication and Roles → Department Directory: normalizes roles (evidence: `frontend/src/app/services/auth.service.ts`)
- Authentication and Roles → Browser User Storage: reads and writes (evidence: `frontend/src/app/services/auth.service.ts`)
- Student Profile → Authentication and Roles: reads account (evidence: `frontend/src/app/student-profile/student-profile.component.ts`)
- Account Settings → Authentication and Roles: updates account (evidence: `frontend/src/app/settings/settings.component.ts`)
- User Listing → User API Service: loads users (evidence: `frontend/src/app/components/user-list/user-list.component.ts`)
- User Creation → User API Service: creates user (evidence: `frontend/src/app/components/user-create/user-create.component.ts`)
- User Editing → User API Service: updates user (evidence: `frontend/src/app/components/user-edit/user-edit.component.ts`)
- User Listing → User Model: uses model (evidence: `frontend/src/app/components/user-list/user-list.component.ts`)
- User API Service → User Model: types records (evidence: `frontend/src/app/services/user.service.ts`)
- User API Service → Campus API: calls users API (evidence: `frontend/src/app/services/user.service.ts`)
- Event Dashboard → Authentication and Roles: reads current user (evidence: `frontend/src/app/dashboard/dashboard.component.ts`)
- Event Dashboard → Event Catalog: loads events (evidence: `frontend/src/app/dashboard/dashboard.component.ts`)
- Event Dashboard → Event Sorting and Department Scope: sorts events (evidence: `frontend/src/app/dashboard/dashboard.component.ts`)
- Event Dashboard → Event Engagement: loads and records engagement (evidence: `frontend/src/app/dashboard/dashboard.component.ts`)
- Admin Event Management → Authentication and Roles: checks admin (evidence: `frontend/src/app/admin-events/admin-events.component.ts`)
- Admin Event Management → Department Directory: uses department options (evidence: `frontend/src/app/admin-events/admin-events.component.ts`)
- Admin Event Management → Event Catalog: manages events (evidence: `frontend/src/app/admin-events/admin-events.component.ts`)
- Admin Event Management → Event Sorting and Department Scope: scopes and sorts (evidence: `frontend/src/app/admin-events/admin-events.component.ts`)
- Admin Event Management → Event Engagement: manages registrations and comments (evidence: `frontend/src/app/admin-events/admin-events.component.ts`)
- Event Catalog → Campus API: calls events API (evidence: `frontend/src/app/services/event.service.ts`)
- Event Engagement → Campus API: calls engagement API (evidence: `frontend/src/app/services/event-engagement.service.ts`)
- Event Sorting and Department Scope → Department Directory: normalizes department (evidence: `frontend/src/app/services/event-store.ts`)
