# wossry/posgrado-dacyti architecture

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

- Interactive diagram: https://gitdiagram.com/wossry/posgrado-dacyti
- Repository: https://github.com/wossry/posgrado-dacyti

## Overview

Posgrado DACYTI is a postgraduate-administration web app for administrator login, browsing programs and students, viewing student records, and updating document status. The main workflow runs from the React router through the relevant page to the Express API and SQLite database; project data also has a separate import script. Dashboard content appears hard-coded in the sampled page, and the README describes only a Vite template, so broader product capabilities cannot be confirmed. Edges are limited to relationships visible in excerpts or the source index.

Main entry points: [`src/App.jsx`](https://github.com/wossry/posgrado-dacyti/blob/main/src/App.jsx) (Route dispatcher), [`src/components/AppLayout.jsx`](https://github.com/wossry/posgrado-dacyti/blob/main/src/components/AppLayout.jsx) (Navigation layout), [`server/index.js`](https://github.com/wossry/posgrado-dacyti/blob/main/server/index.js) (HTTP API), [`src/pages/LoginPage.jsx`](https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/LoginPage.jsx) (Administrator login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Route dispatcher<br/>[App.jsx]"]
  node_login["Administrator login<br/>[LoginPage.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_programs["Program selector"]
  node_students["Student list and records<br/>[ListaAlumnos.jsx]"]
end

subgraph group_api["Backend API"]
  node_api["HTTP API<br/>[index.js]"]
end

subgraph group_data["Data and provisioning"]
  node_sqlite[("SQLite connection<br/>[database.js]")]
  node_schema["Database schema<br/>[schema.sql]"]
  node_project_import["Project data import"]
  node_admin_setup["Admin setup<br/>[create-admin.js]"]
end

subgraph group_shared["Shared interface"]
  node_layout["Navigation layout<br/>[AppLayout.jsx]"]
  node_theme["Theme toggle<br/>[ThemeToggle.jsx]"]
  node_logout["Logout control<br/>[LogoutButton.jsx]"]
end

node_admin(("Administrator"))

node_admin -->|"uses"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_programs
node_app -->|"routes to"| node_students
node_login -->|"posts login"| node_api
node_programs -->|"fetches programs"| node_api
node_students -->|"fetches records"| node_api
node_login -->|"renders"| node_theme
node_programs -->|"renders"| node_layout
node_students -->|"renders"| node_layout
node_dashboard -->|"renders"| node_layout
node_layout -->|"renders"| node_theme
node_layout -->|"renders"| node_logout
node_api -->|"queries"| node_sqlite
node_project_import -->|"uses"| node_sqlite
node_admin_setup -->|"uses"| node_sqlite

click node_app "https://github.com/wossry/posgrado-dacyti/blob/main/src/App.jsx"
click node_login "https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/LoginPage.jsx"
click node_dashboard "https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/Dashboard.jsx"
click node_programs "https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/SelectorPrograma.jsx"
click node_students "https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/ListaAlumnos.jsx"
click node_layout "https://github.com/wossry/posgrado-dacyti/blob/main/src/components/AppLayout.jsx"
click node_theme "https://github.com/wossry/posgrado-dacyti/blob/main/src/components/ThemeToggle.jsx"
click node_logout "https://github.com/wossry/posgrado-dacyti/blob/main/src/components/LogoutButton.jsx"
click node_api "https://github.com/wossry/posgrado-dacyti/blob/main/server/index.js"
click node_sqlite "https://github.com/wossry/posgrado-dacyti/blob/main/server/database.js"
click node_schema "https://github.com/wossry/posgrado-dacyti/blob/main/server/schema.sql"
click node_project_import "https://github.com/wossry/posgrado-dacyti/blob/main/insertar-proyectos.js"
click node_admin_setup "https://github.com/wossry/posgrado-dacyti/blob/main/server/create-admin.js"

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_login,node_dashboard,node_programs,node_students toneBlue
class node_api toneAmber
class node_sqlite,node_schema,node_project_import,node_admin_setup toneMint
class node_layout,node_theme,node_logout toneRose
class node_admin toneIndigo
```

## Components

### Web application

- [Route dispatcher](https://github.com/wossry/posgrado-dacyti/blob/main/src/App.jsx): `src/App.jsx`
- [Administrator login](https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/LoginPage.jsx): `src/pages/LoginPage.jsx`
- [Dashboard](https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Program selector](https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/SelectorPrograma.jsx): `src/pages/SelectorPrograma.jsx`
- [Student list and records](https://github.com/wossry/posgrado-dacyti/blob/main/src/pages/ListaAlumnos.jsx): `src/pages/ListaAlumnos.jsx`

### Backend API

- [HTTP API](https://github.com/wossry/posgrado-dacyti/blob/main/server/index.js): `server/index.js`

### Data and provisioning

- [SQLite connection](https://github.com/wossry/posgrado-dacyti/blob/main/server/database.js): `server/database.js`
- [Database schema](https://github.com/wossry/posgrado-dacyti/blob/main/server/schema.sql): `server/schema.sql`
- [Project data import](https://github.com/wossry/posgrado-dacyti/blob/main/insertar-proyectos.js): `insertar-proyectos.js`
- [Admin setup](https://github.com/wossry/posgrado-dacyti/blob/main/server/create-admin.js): `server/create-admin.js`

### Shared interface

- [Navigation layout](https://github.com/wossry/posgrado-dacyti/blob/main/src/components/AppLayout.jsx): `src/components/AppLayout.jsx`
- [Theme toggle](https://github.com/wossry/posgrado-dacyti/blob/main/src/components/ThemeToggle.jsx): `src/components/ThemeToggle.jsx`
- [Logout control](https://github.com/wossry/posgrado-dacyti/blob/main/src/components/LogoutButton.jsx): `src/components/LogoutButton.jsx`

### Other components

- **Administrator**

## Connections

- Administrator → Route dispatcher: uses
- Route dispatcher → Administrator login: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Dashboard: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Program selector: routes to (evidence: `src/App.jsx`)
- Route dispatcher → Student list and records: routes to (evidence: `src/App.jsx`)
- Administrator login → HTTP API: posts login (evidence: `src/pages/LoginPage.jsx`)
- Program selector → HTTP API: fetches programs (evidence: `src/pages/SelectorPrograma.jsx`)
- Student list and records → HTTP API: fetches records (evidence: `src/pages/ListaAlumnos.jsx`)
- Administrator login → Theme toggle: renders (evidence: `src/pages/LoginPage.jsx`)
- Program selector → Navigation layout: renders (evidence: `src/pages/SelectorPrograma.jsx`)
- Student list and records → Navigation layout: renders (evidence: `src/pages/ListaAlumnos.jsx`)
- Dashboard → Navigation layout: renders (evidence: `src/pages/Dashboard.jsx`)
- Navigation layout → Theme toggle: renders (evidence: `src/components/AppLayout.jsx`)
- Navigation layout → Logout control: renders (evidence: `src/components/AppLayout.jsx`)
- HTTP API → SQLite connection: queries (evidence: `server/index.js`)
- Project data import → SQLite connection: uses (evidence: `insertar-proyectos.js`)
- Admin setup → SQLite connection: uses (evidence: `server/create-admin.js`)
