# dewantara765/mpl-golang-teams architecture

> Architecture diagram of the GitHub repository dewantara765/mpl-golang-teams, 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/dewantara765/mpl-golang-teams
- Repository: https://github.com/dewantara765/mpl-golang-teams

## Overview

This repository implements a tournament and esports-team management product: public users browse tournaments, phases, matches, standings, and heroes; administrators manage tournament data and match details. The frontend routes these experiences and uses a shared HTTP client. The Go backend is organized around routes, controllers, services, repositories, and domain models. The README is empty, and backend wiring was not excerpted, so backend relationships are not asserted here; several less-visible frontend capabilities are represented by their exact source directories.

Main entry points: [`fe-mpl-teams/src/routes/index.tsx`](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/routes/index.tsx) (Route map), [`fe-mpl-teams/src/services/api.ts`](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/services/api.ts) (HTTP client), [`fe-mpl-teams/src/views/dashboard`](https://github.com/dewantara765/mpl-golang-teams/tree/main/fe-mpl-teams/src/views/dashboard) (Management views), [`fe-mpl-teams/src/main.tsx`](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/main.tsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Web application"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app_component["App shell<br/>[App.tsx]"]
  node_routes["Route map<br/>[index.tsx]"]
  node_api_client["HTTP client<br/>[api.ts]"]
  node_pagination["Pagination helper<br/>[pagination.ts]"]
end

subgraph group_public["Public browsing"]
  node_public_layout["Public layout<br/>[DefaultLayout.tsx]"]
  node_public_views["Public views"]
  node_phase_match["Phase matches<br/>[match.tsx]"]
  node_hero_browse["Hero catalogue<br/>[index.tsx]"]
end

subgraph group_admin["Administration"]
  node_admin_layout["Dashboard layout"]
  node_admin_views["Management views"]
end

subgraph group_backend["Backend domain"]
  node_go_routes["API routes<br/>[route.go]"]
  node_controllers["Domain controllers"]
  node_services["Domain services"]
  node_repositories["Repositories"]
  node_models["Domain models"]
  node_scopes["Query scopes"]
end

node_user(("Browser user"))

node_user -->|"opens"| node_entry
node_entry -->|"renders"| node_app_component
node_app_component -->|"renders"| node_routes
node_routes -->|"routes through"| node_public_layout
node_routes -->|"routes to"| node_public_views
node_routes -->|"routes to"| node_phase_match
node_routes -->|"routes to"| node_hero_browse
node_routes -->|"routes through"| node_admin_layout
node_routes -->|"routes to"| node_admin_views
node_public_views -->|"requests data"| node_api_client
node_phase_match -->|"requests data"| node_api_client
node_hero_browse -->|"requests data"| node_api_client
node_admin_views -->|"requests data"| node_api_client
node_admin_views -->|"uses pages"| node_pagination

click node_entry "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/main.tsx"
click node_app_component "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/App.tsx"
click node_routes "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/routes/index.tsx"
click node_public_layout "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/layouts/DefaultLayout.tsx"
click node_public_views "https://github.com/dewantara765/mpl-golang-teams/tree/main/fe-mpl-teams/src/views"
click node_phase_match "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/views/phase/match.tsx"
click node_hero_browse "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/views/hero/index.tsx"
click node_admin_layout "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/layouts/DashboardLayout.tsx"
click node_admin_views "https://github.com/dewantara765/mpl-golang-teams/tree/main/fe-mpl-teams/src/views/dashboard"
click node_api_client "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/services/api.ts"
click node_pagination "https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/utils/pagination.ts"
click node_go_routes "https://github.com/dewantara765/mpl-golang-teams/blob/main/mpl-team/routes/route.go"
click node_controllers "https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/controllers"
click node_services "https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/services"
click node_repositories "https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/repositories"
click node_models "https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/models"
click node_scopes "https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/scopes"

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_entry,node_app_component,node_routes,node_api_client,node_pagination,node_user toneBlue
class node_public_layout,node_public_views,node_phase_match,node_hero_browse toneAmber
class node_admin_layout,node_admin_views toneMint
class node_go_routes,node_controllers,node_services,node_repositories,node_models,node_scopes toneRose
```

## Components

### Web application

- [React entry](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/main.tsx): `fe-mpl-teams/src/main.tsx`
- [App shell](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/App.tsx): `fe-mpl-teams/src/App.tsx`
- [Route map](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/routes/index.tsx): `fe-mpl-teams/src/routes/index.tsx`
- [HTTP client](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/services/api.ts): `fe-mpl-teams/src/services/api.ts`
- [Pagination helper](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/utils/pagination.ts): `fe-mpl-teams/utils/pagination.ts`

### Public browsing

- [Public layout](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/layouts/DefaultLayout.tsx): `fe-mpl-teams/src/layouts/DefaultLayout.tsx`
- [Public views](https://github.com/dewantara765/mpl-golang-teams/tree/main/fe-mpl-teams/src/views): `fe-mpl-teams/src/views`
- [Phase matches](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/views/phase/match.tsx): `fe-mpl-teams/src/views/phase/match.tsx`
- [Hero catalogue](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/views/hero/index.tsx): `fe-mpl-teams/src/views/hero/index.tsx`

### Administration

- [Dashboard layout](https://github.com/dewantara765/mpl-golang-teams/blob/main/fe-mpl-teams/src/layouts/DashboardLayout.tsx): `fe-mpl-teams/src/layouts/DashboardLayout.tsx`
- [Management views](https://github.com/dewantara765/mpl-golang-teams/tree/main/fe-mpl-teams/src/views/dashboard): `fe-mpl-teams/src/views/dashboard`

### Backend domain

- [API routes](https://github.com/dewantara765/mpl-golang-teams/blob/main/mpl-team/routes/route.go): `mpl-team/routes/route.go`
- [Domain controllers](https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/controllers): `mpl-team/controllers`
- [Domain services](https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/services): `mpl-team/services`
- [Repositories](https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/repositories): `mpl-team/repositories`
- [Domain models](https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/models): `mpl-team/models`
- [Query scopes](https://github.com/dewantara765/mpl-golang-teams/tree/main/mpl-team/scopes): `mpl-team/scopes`

### Other components

- **Browser user**

## Connections

- Browser user → React entry: opens (evidence: `fe-mpl-teams/src/main.tsx`)
- React entry → App shell: renders (evidence: `fe-mpl-teams/src/main.tsx`)
- App shell → Route map: renders (evidence: `fe-mpl-teams/src/App.tsx`)
- Route map → Public layout: routes through (evidence: `fe-mpl-teams/src/routes/index.tsx`)
- Route map → Public views: routes to (evidence: `fe-mpl-teams/src/routes/index.tsx`)
- Route map → Phase matches: routes to (evidence: `fe-mpl-teams/src/routes/index.tsx`)
- Route map → Hero catalogue: routes to (evidence: `fe-mpl-teams/src/routes/index.tsx`)
- Route map → Dashboard layout: routes through (evidence: `fe-mpl-teams/src/routes/index.tsx`)
- Route map → Management views: routes to (evidence: `fe-mpl-teams/src/routes/index.tsx`)
- Public views → HTTP client: requests data (evidence: `fe-mpl-teams/src/views/tournament/index.tsx`)
- Phase matches → HTTP client: requests data
- Hero catalogue → HTTP client: requests data (evidence: `fe-mpl-teams/src/views/hero/index.tsx`)
- Management views → HTTP client: requests data (evidence: `fe-mpl-teams/src/views/dashboard/match/index.tsx`)
- Management views → Pagination helper: uses pages (evidence: `fe-mpl-teams/src/views/dashboard/match/index.tsx`)
