# pattiesanchez/act7-academy architecture

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

- Interactive diagram: https://gitdiagram.com/pattiesanchez/act7-academy
- Repository: https://github.com/pattiesanchez/act7-academy

## Overview

This repository appears to be a starter system for managing students, plans, memberships, and access records. Its backend exposes CRUD endpoints through Django REST Framework, serializes those domain records, and configures PostgreSQL; Django admin also registers the records. The Nuxt frontend currently renders its welcome screen and initializes Keycloak SSO. No README describes additional capabilities, and the sampled files do not show frontend API calls or how the frontend plugin is wired, so those connections are not asserted.

Main entry points: [`backend/alunos/views.py`](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/views.py) (Domain viewsets), [`backend/alunos/models.py`](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/models.py) (Domain records), [`backend/config/urls.py`](https://github.com/pattiesanchez/act7-academy/blob/main/backend/config/urls.py) (Project routes), [`backend/alunos/urls.py`](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/urls.py) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_nuxt["Nuxt screen<br/>[app.vue]"]
end

subgraph group_identity["Identity"]
  node_keycloak_plugin["Keycloak client<br/>[keycloak.client.ts]"]
end

subgraph group_api["Backend API"]
  node_django_routes["Project routes<br/>[urls.py]"]
  node_alunos_routes["API routes<br/>[urls.py]"]
  node_viewsets["Domain viewsets<br/>[views.py]"]
  node_serializers["Record serializers<br/>[serializers.py]"]
end

subgraph group_domain["Domain and storage"]
  node_domain_models["Domain records<br/>[models.py]"]
  node_django_admin["Admin registry<br/>[admin.py]"]
  node_django_settings["Database settings<br/>[settings.py]"]
end

node_browser(("Browser user"))
node_keycloak["Keycloak server"]
node_postgres[("PostgreSQL")]

node_browser -->|"opens"| node_nuxt
node_keycloak_plugin -->|"initializes"| node_keycloak
node_browser -->|"requests API"| node_django_routes
node_django_routes -->|"includes"| node_alunos_routes
node_alunos_routes -->|"registers routes"| node_viewsets
node_viewsets -->|"queries records"| node_domain_models
node_viewsets -->|"selects serializer"| node_serializers
node_serializers -->|"serializes records"| node_domain_models
node_django_admin -->|"registers records"| node_domain_models
node_django_settings -->|"configures connection"| node_postgres

click node_nuxt "https://github.com/pattiesanchez/act7-academy/blob/main/frontend/app/app.vue"
click node_keycloak_plugin "https://github.com/pattiesanchez/act7-academy/blob/main/frontend/plugins/keycloak.client.ts"
click node_django_routes "https://github.com/pattiesanchez/act7-academy/blob/main/backend/config/urls.py"
click node_alunos_routes "https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/urls.py"
click node_viewsets "https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/views.py"
click node_serializers "https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/serializers.py"
click node_domain_models "https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/models.py"
click node_django_admin "https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/admin.py"
click node_django_settings "https://github.com/pattiesanchez/act7-academy/blob/main/backend/config/settings.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_nuxt,node_browser toneBlue
class node_keycloak_plugin,node_postgres toneAmber
class node_django_routes,node_alunos_routes,node_viewsets,node_serializers,node_keycloak toneMint
class node_domain_models,node_django_admin,node_django_settings toneRose
```

## Components

### Frontend

- [Nuxt screen](https://github.com/pattiesanchez/act7-academy/blob/main/frontend/app/app.vue): `frontend/app/app.vue`

### Identity

- [Keycloak client](https://github.com/pattiesanchez/act7-academy/blob/main/frontend/plugins/keycloak.client.ts): `frontend/plugins/keycloak.client.ts`

### Backend API

- [Project routes](https://github.com/pattiesanchez/act7-academy/blob/main/backend/config/urls.py): `backend/config/urls.py`
- [API routes](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/urls.py): `backend/alunos/urls.py`
- [Domain viewsets](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/views.py): `backend/alunos/views.py`
- [Record serializers](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/serializers.py): `backend/alunos/serializers.py`

### Domain and storage

- [Domain records](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/models.py): `backend/alunos/models.py`
- [Admin registry](https://github.com/pattiesanchez/act7-academy/blob/main/backend/alunos/admin.py): `backend/alunos/admin.py`
- [Database settings](https://github.com/pattiesanchez/act7-academy/blob/main/backend/config/settings.py): `backend/config/settings.py`

### Other components

- **Browser user**
- **Keycloak server**
- **PostgreSQL**

## Connections

- Browser user → Nuxt screen: opens (evidence: `frontend/app/app.vue`)
- Keycloak client → Keycloak server: initializes (evidence: `frontend/plugins/keycloak.client.ts`)
- Browser user → Project routes: requests API (evidence: `backend/config/urls.py`)
- Project routes → API routes: includes (evidence: `backend/config/urls.py`)
- API routes → Domain viewsets: registers routes (evidence: `backend/alunos/urls.py`)
- Domain viewsets → Domain records: queries records (evidence: `backend/alunos/views.py`)
- Domain viewsets → Record serializers: selects serializer (evidence: `backend/alunos/views.py`)
- Record serializers → Domain records: serializes records (evidence: `backend/alunos/serializers.py`)
- Admin registry → Domain records: registers records (evidence: `backend/alunos/admin.py`)
- Database settings → PostgreSQL: configures connection (evidence: `backend/config/settings.py`)
