# losdesprogramadores/proaconecta architecture

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

- Interactive diagram: https://gitdiagram.com/losdesprogramadores/proaconecta
- Repository: https://github.com/losdesprogramadores/proaconecta

## Overview

#### Purpose and current repository state
PROA Conecta is planned as a full-stack academic and institutional management platform for PROA Embalse. It centralizes identity, academic structure, assignments, submissions, files, announcements, notifications, and reporting to replace fragmented communication channels.

The repository currently contains only the project specification at `README.md`; no application source, Docker Compose file, service manifests, or runnable entry points are present in the supplied tree.

#### Intended runtime topology
The target architecture is a decoupled client-server system:
- Angular frontend serves responsive role-specific dashboards and consumes REST and WebSocket endpoints.
- Django with Django REST Framework exposes business operations and authorization-protected APIs.
- Django Channels provides persistent WebSocket connections for live notifications.
- Docker/Docker Compose is intended to start frontend, backend, PostgreSQL, and MongoDB as a local multi-container environment.

The only available repository path documenting this topology is `README.md`.

#### Identity and authorization boundary
Authentication is intended to use external Google OAuth. The backend should translate authenticated identities into internal users and enforce Administrator, Teacher, and Student permissions at API and real-time channel boundaries.

This is an architecture-critical trust boundary: Angular should not determine permissions; Django must validate role-based access for every protected academic, submission, reporting, and notification operation. Specification: `README.md`.

#### Academic domain management
The core relational domain consists of users, roles, courses, and subjects. Administrators and authorized staff manage these entities through CRUD API operations, while students receive constrained views based on enrollment and role.

PostgreSQL is the intended system of record for these structured, relationship-heavy entities and grades. Specification: `README.md`.

#### Assignment and submission workflow
Teachers create and publish activities, optionally attaching files. Students discover activities for their authorized courses/subjects, submit work, and receive review or feedback. This flow is the primary academic transaction path and requires ownership, enrollment, deadlines, file association, and review-state controls.

Django/DRF is intended to own workflow rules; PostgreSQL persists structured assignment and submission state. Specification: `README.md`.

#### Notifications and audit/event data
Academic updates and official announcements should trigger instant dashboard notifications over Django Channels/WebSockets. MongoDB is intended for flexible notification strings, activity history, and audit logs rather than core relational records.

The expected flow is: backend state change or announcement → event/history record → WebSocket fan-out to relevant connected users → Angular dashboard update. Specification: `README.md`.

#### Reporting and operational infrastructure
The reporting module is intended to filter and search academic-performance metrics and export results. It should read authoritative relational data, respecting requester role and scope before producing exports.

Docker and Docker Compose are the stated local deployment boundary, with GitHub for version control and Figma for UX/UI prototyping. Actual container definitions, ports, environment variables, deployment configuration, and implementation entry points are not yet present; `README.md` references a future `docker-compose.yml`.

Main entry points: [`README.md`](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md) (Django REST API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client"]
  node_angular["Angular dashboards<br/>frontend<br/>[README.md]"]
end

subgraph group_backend["Backend"]
  node_rest_api["Django REST API<br/>Django + DRF<br/>[README.md]"]
  node_authorization["Role authorization<br/>RBAC<br/>[README.md]"]
  node_academic_domain["Academic management<br/>domain module<br/>[README.md]"]
  node_assignments["Assignment workflow<br/>domain module<br/>[README.md]"]
  node_announcements["Announcements<br/>domain module<br/>[README.md]"]
  node_reporting["Reporting &amp; exports<br/>domain module<br/>[README.md]"]
  node_channels["Django Channels<br/>WebSocket service<br/>[README.md]"]
  node_event_history["Event history<br/>event records<br/>[README.md]"]
end

subgraph group_data["Data Stores"]
  node_postgres[("PostgreSQL<br/>relational database<br/>[README.md]")]
  node_file_attachments["File attachments<br/>file data<br/>[README.md]"]
  node_mongo[("MongoDB<br/>document database<br/>[README.md]")]
end

subgraph group_runtime["Local Runtime"]
  node_docker_compose{{"Docker Compose<br/>local orchestration<br/>[README.md]"}}
  node_github["GitHub<br/>version control<br/>[README.md]"]
  node_figma["Figma<br/>UX prototyping<br/>[README.md]"]
end

node_google_oauth["Google OAuth<br/>identity provider<br/>[README.md]"]

node_angular -->|"authenticates with"| node_google_oauth
node_angular -->|"REST requests"| node_rest_api
node_angular -->|"WebSocket connection"| node_channels
node_google_oauth -->|"authenticated identity"| node_rest_api
node_rest_api -->|"enforces"| node_authorization
node_authorization -->|"scopes access to"| node_academic_domain
node_authorization -->|"scopes access to"| node_assignments
node_authorization -->|"scopes access to"| node_reporting
node_rest_api -->|"CRUD operations"| node_academic_domain
node_rest_api -->|"academic transactions"| node_assignments
node_rest_api -->|"publishes"| node_announcements
node_academic_domain -->|"persists"| node_postgres
node_assignments -->|"persists state"| node_postgres
node_assignments -->|"associates"| node_file_attachments
node_reporting -->|"reads authoritative data"| node_postgres
node_assignments -->|"state changes"| node_event_history
node_announcements -->|"announcement events"| node_event_history
node_event_history -->|"stores notifications and audit"| node_mongo
node_event_history -->|"triggers fan-out"| node_channels
node_channels -->|"dashboard updates"| node_angular
node_docker_compose -.->|"planned container"| node_angular
node_docker_compose -.->|"planned container"| node_rest_api
node_docker_compose -.->|"planned container"| node_postgres
node_docker_compose -.->|"planned container"| node_mongo
node_figma -.->|"informs UX"| node_angular

click node_angular "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_google_oauth "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_rest_api "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_authorization "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_academic_domain "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_assignments "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_announcements "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_reporting "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_channels "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_postgres "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_file_attachments "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_mongo "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_event_history "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_docker_compose "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_github "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"
click node_figma "https://github.com/losdesprogramadores/proaconecta/blob/main/README.md"

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_angular toneBlue
class node_rest_api,node_authorization,node_academic_domain,node_assignments,node_announcements,node_reporting,node_channels,node_event_history toneAmber
class node_postgres,node_file_attachments,node_mongo toneMint
class node_docker_compose,node_github,node_figma toneRose
class node_google_oauth toneNeutral
```

## Components

### Client

- [Angular dashboards](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): frontend · Role-specific academic dashboards. · `README.md`

### Backend

- [Django REST API](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): Django + DRF · Protected business and CRUD API boundary. · `README.md`
- [Role authorization](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): RBAC · Backend-enforced Administrator, Teacher, and Student scopes. · `README.md`
- [Academic management](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): domain module · Users, roles, courses, subjects, enrollment, and grades. · `README.md`
- [Assignment workflow](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): domain module · Publishing, deadlines, submissions, review, and feedback. · `README.md`
- [Announcements](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): domain module · Official institutional communications. · `README.md`
- [Reporting & exports](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): domain module · Role-scoped academic performance queries and exports. · `README.md`
- [Django Channels](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): WebSocket service · Persistent live-notification connections. · `README.md`
- [Event history](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): event records · State-change and announcement events for notification delivery. · `README.md`

### Data Stores

- [PostgreSQL](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): relational database · System of record for structured academic data and grades. · `README.md`
- [File attachments](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): file data · Files associated with activities and submissions. · `README.md`
- [MongoDB](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): document database · Notifications, activity history, and audit logs. · `README.md`

### Local Runtime

Planned; no runtime files are present.

- [Docker Compose](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): local orchestration · Planned frontend, backend, PostgreSQL, and MongoDB environment. · `README.md`
- [GitHub](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): version control · `README.md`
- [Figma](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): UX prototyping · `README.md`

### Other components

- [Google OAuth](https://github.com/losdesprogramadores/proaconecta/blob/main/README.md): identity provider · External authentication provider. · `README.md`

## Connections

- Angular dashboards → Google OAuth: authenticates with
- Angular dashboards → Django REST API: REST requests
- Angular dashboards → Django Channels: WebSocket connection
- Google OAuth → Django REST API: authenticated identity
- Django REST API → Role authorization: enforces
- Role authorization → Academic management: scopes access to
- Role authorization → Assignment workflow: scopes access to
- Role authorization → Reporting & exports: scopes access to
- Django REST API → Academic management: CRUD operations
- Django REST API → Assignment workflow: academic transactions
- Django REST API → Announcements: publishes
- Academic management → PostgreSQL: persists
- Assignment workflow → PostgreSQL: persists state
- Assignment workflow → File attachments: associates
- Reporting & exports → PostgreSQL: reads authoritative data
- Assignment workflow → Event history: state changes
- Announcements → Event history: announcement events
- Event history → MongoDB: stores notifications and audit
- Event history → Django Channels: triggers fan-out
- Django Channels → Angular dashboards: dashboard updates
- Docker Compose → Angular dashboards: planned container
- Docker Compose → Django REST API: planned container
- Docker Compose → PostgreSQL: planned container
- Docker Compose → MongoDB: planned container
- Figma → Angular dashboards: informs UX
