# ryuuen8/matekk-website1 architecture

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

- Interactive diagram: https://gitdiagram.com/ryuuen8/matekk-website1
- Repository: https://github.com/ryuuen8/matekk-website1

## Overview

MATEKK Cybercore Academy combines a public ICT training-and-services website with learner accounts and server-backed enrollment, assessment, and administration features. The principal journey is to browse a program, inquire or enroll, then access course materials and assessments; gradebook and admin capabilities support the learning operation. The README describes service offerings and enrollment stages, while sampled files establish selected routing, UI composition, and server calls. Some frontend-to-server links are documented only as product workflow, not verified HTTP wiring.

Main entry points: [`src/routes/App.jsx`](https://github.com/ryuuen8/matekk-website1/blob/main/src/routes/App.jsx) (Web routes), [`server/src/app.module.ts`](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/app.module.ts) (Nest application), [`src/components/ui/EnrollModal.jsx`](https://github.com/ryuuen8/matekk-website1/blob/main/src/components/ui/EnrollModal.jsx) (Enrollment UI), [`src/pages/training`](https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/training) (Course pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public Website"]
  node_router["Web routes<br/>[App.jsx]"]
  node_home["Home and programs<br/>[Home.jsx]"]
  node_services["ICT service pages"]
end

subgraph group_learning["Learning Experience"]
  node_training["Course pages"]
  node_modules["Course modules<br/>[courseModules.jsx]"]
  node_labs["Practice labs<br/>[labEngine.js]"]
  node_programs["Learner dashboards"]
  node_gradebook["Gradebook"]
end

subgraph group_operations["Enrollment Operations"]
  node_enrollui["Enrollment UI<br/>[EnrollModal.jsx]"]
  node_inquiries["Inquiries"]
  node_enrollments["Enrollment management"]
  node_authui["Login and account<br/>[AuthContext.jsx]"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_admin["User administration<br/>[users.service.ts]"]
end

subgraph group_platform["Application Platform"]
  node_api["Nest application<br/>[app.module.ts]"]
  node_db[("Application database<br/>[prisma.service.ts]")]
  node_email["Email delivery<br/>[email.service.ts]"]
end

node_visitor(("Prospective learner"))

node_visitor -->|"opens"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_training
node_router -->|"routes to"| node_programs
node_router -->|"routes to"| node_authui
node_router -.->|"routes to"| node_services
node_home -.->|"offers enrollment"| node_enrollui
node_training -->|"renders"| node_modules
node_training -->|"offers enrollment"| node_enrollui
node_programs -.->|"provides practice"| node_labs
node_programs -.->|"records progress"| node_gradebook
node_enrollui -.->|"submits enrollment"| node_enrollments
node_enrollui -.->|"submits inquiry"| node_inquiries
node_authui -.->|"authenticates"| node_auth
node_api -->|"registers module"| node_enrollments
node_api -->|"registers module"| node_inquiries
node_api -->|"registers module"| node_gradebook
node_api -->|"registers module"| node_auth
node_enrollments -->|"reads and writes"| node_db
node_auth -->|"reads and writes"| node_db
node_admin -->|"reads and writes"| node_db
node_admin -->|"sends messages"| node_email

click node_router "https://github.com/ryuuen8/matekk-website1/blob/main/src/routes/App.jsx"
click node_home "https://github.com/ryuuen8/matekk-website1/blob/main/src/pages/Home.jsx"
click node_training "https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/training"
click node_modules "https://github.com/ryuuen8/matekk-website1/blob/main/src/components/training/courseModules.jsx"
click node_labs "https://github.com/ryuuen8/matekk-website1/blob/main/src/pages/training/cisco/ccna/labs/labEngine.js"
click node_programs "https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/modules/programs"
click node_gradebook "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/gradebook/gradebook.service.ts"
click node_enrollui "https://github.com/ryuuen8/matekk-website1/blob/main/src/components/ui/EnrollModal.jsx"
click node_inquiries "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/inquires/inquires.service.ts"
click node_enrollments "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/enrollments/enrollments.service.ts"
click node_authui "https://github.com/ryuuen8/matekk-website1/blob/main/src/context/AuthContext.jsx"
click node_auth "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/auth/auth.service.ts"
click node_admin "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/users/users.service.ts"
click node_services "https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/solutions"
click node_api "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/app.module.ts"
click node_db "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/prisma/prisma.service.ts"
click node_email "https://github.com/ryuuen8/matekk-website1/blob/main/server/src/email/email.service.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_router,node_home,node_services toneBlue
class node_training,node_modules,node_labs,node_programs,node_gradebook toneAmber
class node_enrollui,node_inquiries,node_enrollments,node_authui,node_auth,node_admin toneMint
class node_api,node_db,node_email toneRose
class node_visitor toneIndigo
```

## Components

### Public Website

- [Web routes](https://github.com/ryuuen8/matekk-website1/blob/main/src/routes/App.jsx): `src/routes/App.jsx`
- [Home and programs](https://github.com/ryuuen8/matekk-website1/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [ICT service pages](https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/solutions): `src/pages/solutions`

### Learning Experience

- [Course pages](https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/training): `src/pages/training`
- [Course modules](https://github.com/ryuuen8/matekk-website1/blob/main/src/components/training/courseModules.jsx): `src/components/training/courseModules.jsx`
- [Practice labs](https://github.com/ryuuen8/matekk-website1/blob/main/src/pages/training/cisco/ccna/labs/labEngine.js): `src/pages/training/cisco/ccna/labs/labEngine.js`
- [Learner dashboards](https://github.com/ryuuen8/matekk-website1/tree/main/src/pages/modules/programs): `src/pages/modules/programs`
- [Gradebook](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/gradebook/gradebook.service.ts): `server/src/gradebook/gradebook.service.ts`

### Enrollment Operations

- [Enrollment UI](https://github.com/ryuuen8/matekk-website1/blob/main/src/components/ui/EnrollModal.jsx): `src/components/ui/EnrollModal.jsx`
- [Inquiries](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/inquires/inquires.service.ts): `server/src/inquires/inquires.service.ts`
- [Enrollment management](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/enrollments/enrollments.service.ts): `server/src/enrollments/enrollments.service.ts`
- [Login and account](https://github.com/ryuuen8/matekk-website1/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Authentication](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/auth/auth.service.ts): `server/src/auth/auth.service.ts`
- [User administration](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/users/users.service.ts): `server/src/users/users.service.ts`

### Application Platform

- [Nest application](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/app.module.ts): `server/src/app.module.ts`
- [Application database](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/prisma/prisma.service.ts): `server/src/prisma/prisma.service.ts`
- [Email delivery](https://github.com/ryuuen8/matekk-website1/blob/main/server/src/email/email.service.ts): `server/src/email/email.service.ts`

### Other components

- **Prospective learner**

## Connections

- Prospective learner → Web routes: opens (evidence: `src/routes/App.jsx`)
- Web routes → Home and programs: routes to (evidence: `src/routes/App.jsx`)
- Web routes → Course pages: routes to (evidence: `src/routes/App.jsx`)
- Web routes → Learner dashboards: routes to (evidence: `src/routes/App.jsx`)
- Web routes → Login and account: routes to (evidence: `src/routes/App.jsx`)
- Web routes → ICT service pages: routes to
- Home and programs → Enrollment UI: offers enrollment
- Course pages → Course modules: renders (evidence: `src/pages/training/paloalto/networksecurity/securityserviceedgeengineer.jsx`)
- Course pages → Enrollment UI: offers enrollment
- Learner dashboards → Practice labs: provides practice
- Learner dashboards → Gradebook: records progress
- Enrollment UI → Enrollment management: submits enrollment
- Enrollment UI → Inquiries: submits inquiry
- Login and account → Authentication: authenticates
- Nest application → Enrollment management: registers module (evidence: `server/src/app.module.ts`)
- Nest application → Inquiries: registers module (evidence: `server/src/app.module.ts`)
- Nest application → Gradebook: registers module (evidence: `server/src/app.module.ts`)
- Nest application → Authentication: registers module (evidence: `server/src/app.module.ts`)
- Enrollment management → Application database: reads and writes (evidence: `server/src/enrollments/enrollments.service.ts`)
- Authentication → Application database: reads and writes (evidence: `server/src/auth/auth.service.ts`)
- User administration → Application database: reads and writes (evidence: `server/src/users/users.service.ts`)
- User administration → Email delivery: sends messages (evidence: `server/src/users/users.service.ts`)
