# munchkin112/q-net-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/munchkin112/q-net-frontend
- Repository: https://github.com/munchkin112/q-net-frontend

## Overview

Q-Net-Frontend is a certificate discovery and exam-schedule frontend. Users browse or search certificates, inspect official details and schedules, and can save favorites; a profile-based path generates related-certificate recommendations. The app also supports login and Google Calendar authorization and event registration. The graph follows the documented routing, detail, recommendation, and calendar flows. Several page implementations and API modules were not excerpted, so their internal interactions are not inferred.

Main entry points: [`src/App.tsx`](https://github.com/munchkin112/q-net-frontend/blob/dev/src/App.tsx) (App Router), [`src/pages/Detail.tsx`](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Detail.tsx) (Certificate Detail), [`src/pages/Profile.tsx`](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Profile.tsx) (Profile Form), [`src/api/googleCalendar.ts`](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/googleCalendar.ts) (Google Calendar API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_app["App Router<br/>[App.tsx]"]
  node_context["Shared App State<br/>[AppContext.tsx]"]
end

subgraph group_discovery["Certificate Discovery"]
  node_home["Certificate Search<br/>[Home.tsx]"]
  node_detail["Certificate Detail<br/>[Detail.tsx]"]
  node_favorites["Favorites<br/>[Favorites.tsx]"]
end

subgraph group_personal["Personalization"]
  node_profile["Profile Form<br/>[Profile.tsx]"]
  node_related["Related Certificates<br/>[Related.tsx]"]
  node_recommendation_page["Recommendations Page"]
end

subgraph group_calendar["Calendar Integration"]
  node_calendar_page["Calendar View<br/>[Calendar.tsx]"]
  node_calendar_detail["Registration Dialog"]
end

subgraph group_api["API Access"]
  node_auth["Authentication<br/>[auth.ts]"]
  node_certificate_api["Certificate API<br/>[certificates.ts]"]
  node_favorite_state["Favorite Operations<br/>[favorites.ts]"]
  node_profile_api["Interest Categories<br/>[profile.ts]"]
  node_recommendations["Recommendation API<br/>[recommendations.ts]"]
  node_calendar_api["Calendar Operations<br/>[calendar.ts]"]
  node_google_calendar["Google Calendar API<br/>[googleCalendar.ts]"]
end

node_user(("User"))
node_backend{{"Q-Net Backend"}}
node_google{{"Google Calendar"}}

node_user -->|"uses"| node_app
node_app -->|"provides state"| node_context
node_app -->|"renders"| node_home
node_app -->|"renders"| node_detail
node_app -->|"renders"| node_profile
node_app -->|"checks tokens"| node_auth
node_app -->|"completes callback"| node_google_calendar
node_detail -->|"loads details"| node_certificate_api
node_certificate_api -->|"requests certificate data"| node_backend
node_user -.->|"enters profile"| node_profile
node_profile -->|"loads categories"| node_profile_api
node_profile_api -.->|"requests categories"| node_backend
node_profile -->|"requests recommendations"| node_recommendations
node_recommendations -.->|"requests recommendations"| node_backend
node_user -.->|"manages favorites"| node_favorites
node_favorites -.->|"uses favorite data"| node_favorite_state
node_user -.->|"views schedule"| node_calendar_page
node_calendar_page -->|"uses calendar data"| node_calendar_api
node_user -.->|"selects schedule"| node_detail
node_detail -.->|"opens registration"| node_calendar_detail
node_calendar_detail -.->|"registers events"| node_google_calendar
node_google_calendar -->|"calls calendar endpoints"| node_backend
node_backend -.->|"creates calendar events"| node_google

click node_app "https://github.com/munchkin112/q-net-frontend/blob/dev/src/App.tsx"
click node_context "https://github.com/munchkin112/q-net-frontend/blob/dev/src/AppContext.tsx"
click node_auth "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/auth.ts"
click node_home "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Home.tsx"
click node_detail "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Detail.tsx"
click node_certificate_api "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/certificates.ts"
click node_favorites "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Favorites.tsx"
click node_favorite_state "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/favorites.ts"
click node_profile "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Profile.tsx"
click node_profile_api "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/profile.ts"
click node_recommendations "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/recommendations.ts"
click node_related "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Related.tsx"
click node_recommendation_page "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Recommendations.tsx"
click node_calendar_page "https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Calendar.tsx"
click node_calendar_api "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/calendar.ts"
click node_calendar_detail "https://github.com/munchkin112/q-net-frontend/blob/dev/src/components/CalendarRegistrationDialog.tsx"
click node_google_calendar "https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/googleCalendar.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_app,node_context,node_user toneBlue
class node_home,node_detail,node_favorites toneAmber
class node_profile,node_related,node_recommendation_page toneMint
class node_calendar_page,node_calendar_detail toneRose
class node_auth,node_certificate_api,node_favorite_state,node_profile_api,node_recommendations,node_calendar_api,node_google_calendar,node_backend,node_google toneIndigo
```

## Components

### Application

- [App Router](https://github.com/munchkin112/q-net-frontend/blob/dev/src/App.tsx): `src/App.tsx`
- [Shared App State](https://github.com/munchkin112/q-net-frontend/blob/dev/src/AppContext.tsx): `src/AppContext.tsx`

### Certificate Discovery

- [Certificate Search](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Certificate Detail](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Detail.tsx): `src/pages/Detail.tsx`
- [Favorites](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Favorites.tsx): `src/pages/Favorites.tsx`

### Personalization

- [Profile Form](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Profile.tsx): `src/pages/Profile.tsx`
- [Related Certificates](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Related.tsx): `src/pages/Related.tsx`
- [Recommendations Page](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Recommendations.tsx): `src/pages/Recommendations.tsx`

### Calendar Integration

- [Calendar View](https://github.com/munchkin112/q-net-frontend/blob/dev/src/pages/Calendar.tsx): `src/pages/Calendar.tsx`
- [Registration Dialog](https://github.com/munchkin112/q-net-frontend/blob/dev/src/components/CalendarRegistrationDialog.tsx): `src/components/CalendarRegistrationDialog.tsx`

### API Access

- [Authentication](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/auth.ts): `src/api/auth.ts`
- [Certificate API](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/certificates.ts): `src/api/certificates.ts`
- [Favorite Operations](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/favorites.ts): `src/api/favorites.ts`
- [Interest Categories](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/profile.ts): `src/api/profile.ts`
- [Recommendation API](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/recommendations.ts): `src/api/recommendations.ts`
- [Calendar Operations](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/calendar.ts): `src/api/calendar.ts`
- [Google Calendar API](https://github.com/munchkin112/q-net-frontend/blob/dev/src/api/googleCalendar.ts): `src/api/googleCalendar.ts`

### Other components

- **User**
- **Q-Net Backend**
- **Google Calendar**

## Connections

- User → App Router: uses
- App Router → Shared App State: provides state (evidence: `src/App.tsx`)
- App Router → Certificate Search: renders (evidence: `src/App.tsx`)
- App Router → Certificate Detail: renders (evidence: `src/App.tsx`)
- App Router → Profile Form: renders (evidence: `src/App.tsx`)
- App Router → Authentication: checks tokens (evidence: `src/App.tsx`)
- App Router → Google Calendar API: completes callback (evidence: `src/App.tsx`)
- Certificate Detail → Certificate API: loads details (evidence: `src/pages/Detail.tsx`)
- Certificate API → Q-Net Backend: requests certificate data (evidence: `README.md`)
- User → Profile Form: enters profile
- Profile Form → Interest Categories: loads categories (evidence: `src/pages/Profile.tsx`)
- Interest Categories → Q-Net Backend: requests categories
- Profile Form → Recommendation API: requests recommendations (evidence: `src/pages/Profile.tsx`)
- Recommendation API → Q-Net Backend: requests recommendations
- User → Favorites: manages favorites
- Favorites → Favorite Operations: uses favorite data
- User → Calendar View: views schedule
- Calendar View → Calendar Operations: uses calendar data (evidence: `src/pages/Calendar.tsx`)
- User → Certificate Detail: selects schedule
- Certificate Detail → Registration Dialog: opens registration
- Registration Dialog → Google Calendar API: registers events (evidence: `src/components/CalendarRegistrationDialog.tsx`)
- Google Calendar API → Q-Net Backend: calls calendar endpoints (evidence: `README.md`)
- Q-Net Backend → Google Calendar: creates calendar events
