# jiaqianwan2024/spm_g6t3 architecture

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

- Interactive diagram: https://gitdiagram.com/jiaqianwan2024/spm_g6t3
- Repository: https://github.com/jiaqianwan2024/spm_g6t3

## Overview

Event Platform is a Vue event-management application backed by six FastAPI services, each owning a MySQL schema; Firebase provides identity, with each service validating incoming tokens. The documented request path is browser-to-service over HTTP, with the event service querying registration counts and coordinating with other services. The frontend includes event discovery, review, registration, venue, equipment, and profile workflows, though the README notes screens still use demo data until wired to API wrappers. Some frontend and backend relationships below are documented rather than confirmed in unsampled implementation files.

Main entry points: [`frontend/src/api/axiosClient.js`](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/api/axiosClient.js) (HTTP API clients), [`services/event-service/app/services/event_service.py`](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/event-service/app/services/event_service.py) (Event service), [`services/registration-service/app/services/registration_service.py`](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/registration-service/app/services/registration_service.py) (Registration service), [`frontend/src/router/index.js`](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/router/index.js) (Vue router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Vue application"]
  node_review["Review queue<br/>[ReviewQueue.vue]"]
  node_detail["Event detail<br/>[EventDetail.vue]"]
  node_browse["Event browsing<br/>[BrowseEvents.vue]"]
  node_create["Event creation<br/>[CreateEvent.vue]"]
  node_regui["My registrations"]
  node_venueui["Venue catalogue<br/>[VenueCatalogue.vue]"]
  node_equipmentui["Equipment catalogue"]
  node_session["Session state<br/>[session.js]"]
  node_http["HTTP API clients<br/>[axiosClient.js]"]
  node_router["Vue router<br/>[index.js]"]
end

subgraph group_events["Event management"]
  node_event["Event service<br/>[event_service.py]"]
  node_eventdb[("Event schema<br/>[event.py]")]
end

subgraph group_resources["Resource management"]
  node_venue["Venue service<br/>[venue_service.py]"]
  node_equipment["Equipment service"]
end

subgraph group_people["Identity and attendance"]
  node_user["User service<br/>[user_service.py]"]
  node_registration["Registration service"]
  node_notification["Notification service<br/>[notification.py]"]
end

subgraph group_shared["Shared backend"]
  node_auth["Token verification<br/>[deps.py]"]
end

node_firebase["Firebase identity<br/>[firebase.js]"]
node_mysql[("MySQL instance")]

node_firebase -->|"restores identity"| node_session
node_session -->|"gates routes"| node_router
node_router -->|"routes to"| node_detail
node_router -->|"routes to"| node_review
node_router -->|"routes to"| node_regui
node_http -->|"attaches token"| node_firebase
node_http -->|"HTTP requests"| node_event
node_http -->|"HTTP requests"| node_user
node_http -->|"HTTP requests"| node_venue
node_http -->|"HTTP requests"| node_equipment
node_http -->|"HTTP requests"| node_registration
node_http -->|"HTTP requests"| node_notification
node_event -->|"reads and writes"| node_eventdb
node_event -->|"fetches counts"| node_registration
node_event -->|"coordinates services"| node_venue
node_event -->|"coordinates services"| node_equipment
node_registration -->|"checks eligibility"| node_event
node_auth -->|"verifies tokens"| node_firebase
node_event -->|"requires authentication"| node_auth
node_registration -->|"requires authentication"| node_auth
node_eventdb -->|"persists data"| node_mysql
node_user -->|"persists data"| node_mysql
node_venue -->|"persists data"| node_mysql
node_equipment -->|"persists data"| node_mysql
node_registration -->|"persists data"| node_mysql

click node_user "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/user-service/app/services/user_service.py"
click node_event "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/event-service/app/services/event_service.py"
click node_eventdb "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/event-service/app/models/event.py"
click node_review "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/review-queue/ReviewQueue.vue"
click node_detail "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/event-detail/EventDetail.vue"
click node_browse "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/browse-events/BrowseEvents.vue"
click node_create "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/create-event/CreateEvent.vue"
click node_registration "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/registration-service/app/services/registration_service.py"
click node_regui "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/my-registrations/MyRegistrations.vue"
click node_venue "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/venue-service/app/services/venue_service.py"
click node_venueui "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/venue-catalogue/VenueCatalogue.vue"
click node_equipment "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/equipment-service/app/services/equipment_service.py"
click node_equipmentui "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/equipment-catalogue/EquipmentCatalogue.vue"
click node_notification "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/notification-service/app/routers/notification.py"
click node_firebase "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/firebase.js"
click node_session "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/store/session.js"
click node_http "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/api/axiosClient.js"
click node_router "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/router/index.js"
click node_auth "https://github.com/jiaqianwan2024/spm_g6t3/blob/main/shared/auth/deps.py"

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_review,node_detail,node_browse,node_create,node_regui,node_venueui,node_equipmentui,node_session,node_http,node_router toneBlue
class node_event,node_eventdb,node_mysql toneAmber
class node_venue,node_equipment toneMint
class node_user,node_registration,node_notification toneRose
class node_auth toneIndigo
class node_firebase toneTeal
```

## Components

### Vue application

- [Review queue](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/review-queue/ReviewQueue.vue): `frontend/src/features/review-queue/ReviewQueue.vue`
- [Event detail](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/event-detail/EventDetail.vue): `frontend/src/features/event-detail/EventDetail.vue`
- [Event browsing](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/browse-events/BrowseEvents.vue): `frontend/src/features/browse-events/BrowseEvents.vue`
- [Event creation](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/create-event/CreateEvent.vue): `frontend/src/features/create-event/CreateEvent.vue`
- [My registrations](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/my-registrations/MyRegistrations.vue): `frontend/src/features/my-registrations/MyRegistrations.vue`
- [Venue catalogue](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/venue-catalogue/VenueCatalogue.vue): `frontend/src/features/venue-catalogue/VenueCatalogue.vue`
- [Equipment catalogue](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/features/equipment-catalogue/EquipmentCatalogue.vue): `frontend/src/features/equipment-catalogue/EquipmentCatalogue.vue`
- [Session state](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/store/session.js): `frontend/src/store/session.js`
- [HTTP API clients](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/api/axiosClient.js): `frontend/src/api/axiosClient.js`
- [Vue router](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/router/index.js): `frontend/src/router/index.js`

### Event management

- [Event service](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/event-service/app/services/event_service.py): `services/event-service/app/services/event_service.py`
- [Event schema](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/event-service/app/models/event.py): `services/event-service/app/models/event.py`

### Resource management

- [Venue service](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/venue-service/app/services/venue_service.py): `services/venue-service/app/services/venue_service.py`
- [Equipment service](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/equipment-service/app/services/equipment_service.py): `services/equipment-service/app/services/equipment_service.py`

### Identity and attendance

- [User service](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/user-service/app/services/user_service.py): `services/user-service/app/services/user_service.py`
- [Registration service](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/registration-service/app/services/registration_service.py): `services/registration-service/app/services/registration_service.py`
- [Notification service](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/services/notification-service/app/routers/notification.py): `services/notification-service/app/routers/notification.py`

### Shared backend

- [Token verification](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/shared/auth/deps.py): `shared/auth/deps.py`

### Other components

- [Firebase identity](https://github.com/jiaqianwan2024/spm_g6t3/blob/main/frontend/src/firebase.js): `frontend/src/firebase.js`
- **MySQL instance**

## Connections

- Firebase identity → Session state: restores identity (evidence: `frontend/src/main.js`)
- Session state → Vue router: gates routes (evidence: `frontend/src/router/index.js`)
- Vue router → Event detail: routes to (evidence: `frontend/src/router/index.js`)
- Vue router → Review queue: routes to (evidence: `frontend/src/router/index.js`)
- Vue router → My registrations: routes to (evidence: `frontend/src/router/index.js`)
- HTTP API clients → Firebase identity: attaches token (evidence: `frontend/src/api/axiosClient.js`)
- HTTP API clients → Event service: HTTP requests (evidence: `README.md`)
- HTTP API clients → User service: HTTP requests (evidence: `README.md`)
- HTTP API clients → Venue service: HTTP requests (evidence: `README.md`)
- HTTP API clients → Equipment service: HTTP requests (evidence: `README.md`)
- HTTP API clients → Registration service: HTTP requests (evidence: `README.md`)
- HTTP API clients → Notification service: HTTP requests (evidence: `README.md`)
- Event service → Event schema: reads and writes (evidence: `services/event-service/app/services/event_service.py`)
- Event service → Registration service: fetches counts (evidence: `README.md`)
- Event service → Venue service: coordinates services (evidence: `README.md`)
- Event service → Equipment service: coordinates services (evidence: `README.md`)
- Registration service → Event service: checks eligibility
- Token verification → Firebase identity: verifies tokens (evidence: `shared/auth/deps.py`)
- Event service → Token verification: requires authentication
- Registration service → Token verification: requires authentication
- Event schema → MySQL instance: persists data (evidence: `README.md`)
- User service → MySQL instance: persists data (evidence: `README.md`)
- Venue service → MySQL instance: persists data (evidence: `README.md`)
- Equipment service → MySQL instance: persists data (evidence: `README.md`)
- Registration service → MySQL instance: persists data (evidence: `README.md`)
