# jjbbpp1/jjbbpp1.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/jjbbpp1/jjbbpp1.github.io
- Repository: https://github.com/jjbbpp1/jjbbpp1.github.io

## Overview

This repository is a Spanish-language educational portfolio and web-services project. Visitors browse lessons and interactive exercises; a prominent NEXUS server-hosting project adds plan configuration and account features backed by Firebase. Separate Express backends provide AI chat, agenda-task storage, and an admin user-creation endpoint. The tree and excerpts establish these capabilities, but the README is empty and many page-to-script and browser-to-backend connections are not shown, so those links are omitted.

Main entry points: [`server/index.js`](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/server/index.js) (Tasks and admin API), [`js/firebase-init.js`](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/firebase-init.js) (Firebase setup), [`js/auth-handlers.js`](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/auth-handlers.js) (Account and plan flows), [`js/admin-only.js`](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/admin-only.js) (Admin console)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning content"]
  node_networking["Network services lessons<br/>[ser.html]"]
  node_dns["DNS lesson<br/>[dns.html]"]
  node_dhcp["DHCP lesson<br/>[dhcp.html]"]
  node_javascript_lessons["JavaScript lessons<br/>[javascript.html]"]
  node_js_exercises["JavaScript exercises"]
  node_html_guide["HTML guide<br/>[guiahtml.html]"]
  node_css_guide["CSS guide<br/>[cssguia.html]"]
end

subgraph group_nexus["NEXUS platform"]
  node_nexus_site["Hosting plans<br/>[plan-empresa.html]"]
  node_plan_config["Plan configurator<br/>[plan-empresa.js]"]
  node_account_flows["Account and plan flows<br/>[auth-handlers.js]"]
  node_firebase_setup["Firebase setup<br/>[firebase-init.js]"]
  node_admin["Admin console<br/>[admin-only.js]"]
  node_server_config["Server configuration page"]
end

subgraph group_interactive["Interactive pages"]
  node_calculator_page["Calculator<br/>[calculadora.html]"]
  node_calculator_logic["Calculator logic<br/>[calculadora.js]"]
  node_agenda["Agenda<br/>[agenda.html]"]
  node_agenda_logic["Agenda interactions<br/>[agenda.js]"]
  node_ai_guide["AI guide page<br/>[aiguide.html]"]
end

subgraph group_services["Backends and services"]
  node_ai_backend["Portfolio AI chat API<br/>[index.js]"]
  node_agenda_backend["Tasks and admin API<br/>[index.js]"]
  node_firebase_auth[("Firebase Authentication")]
  node_firestore[("Firestore")]
  node_groq{{"Groq chat API"}}
  node_anthropic{{"Anthropic Messages API"}}
end

node_visitor(("Site visitor"))
node_admin_actor(("Administrator"))

node_visitor -->|"browses"| node_networking
node_visitor -->|"studies"| node_dns
node_visitor -->|"studies"| node_dhcp
node_visitor -->|"studies"| node_javascript_lessons
node_visitor -->|"practices"| node_js_exercises
node_visitor -->|"studies"| node_html_guide
node_visitor -->|"studies"| node_css_guide
node_visitor -->|"explores"| node_nexus_site
node_visitor -->|"uses"| node_calculator_page
node_visitor -->|"uses"| node_agenda
node_visitor -->|"consults"| node_ai_guide
node_plan_config -->|"delegates plan saving"| node_account_flows
node_account_flows -->|"imports clients"| node_firebase_setup
node_admin -->|"imports clients"| node_firebase_setup
node_server_config -->|"imports auth"| node_firebase_setup
node_account_flows -->|"authenticates users"| node_firebase_auth
node_account_flows -->|"reads and writes"| node_firestore
node_admin -->|"manages user records"| node_firestore
node_firebase_setup -->|"initializes"| node_firebase_auth
node_firebase_setup -->|"initializes"| node_firestore
node_calculator_page -.->|"uses script"| node_calculator_logic
node_agenda -.->|"uses script"| node_agenda_logic
node_visitor -.->|"sends chat"| node_ai_backend
node_ai_backend -->|"requests completion"| node_groq
node_admin_actor -->|"manages accounts"| node_admin
node_admin -->|"posts user creation"| node_agenda_backend
node_agenda_backend -->|"creates users"| node_firebase_auth
node_agenda_backend -->|"stores profiles"| node_firestore
node_visitor -.->|"requests chat"| node_agenda_backend
node_agenda_backend -->|"forwards messages"| node_anthropic

click node_networking "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/ser.html"
click node_dns "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/dns.html"
click node_dhcp "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/dhcp.html"
click node_javascript_lessons "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/javascript.html"
click node_js_exercises "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/ejercicios_javascript.html"
click node_html_guide "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/guiahtml.html"
click node_css_guide "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/cssguia.html"
click node_nexus_site "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/plan-empresa.html"
click node_plan_config "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/plan-empresa.js"
click node_account_flows "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/auth-handlers.js"
click node_firebase_setup "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/firebase-init.js"
click node_admin "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/admin-only.js"
click node_server_config "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/configuracion-servidor.html"
click node_calculator_page "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/calculadora.html"
click node_calculator_logic "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/calculadora.js"
click node_agenda "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/agenda.html"
click node_agenda_logic "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/agenda.js"
click node_ai_guide "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/aiguide.html"
click node_ai_backend "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/backend/index.js"
click node_agenda_backend "https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/server/index.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_networking,node_dns,node_dhcp,node_javascript_lessons,node_js_exercises,node_html_guide,node_css_guide toneBlue
class node_nexus_site,node_plan_config,node_account_flows,node_firebase_setup,node_admin,node_server_config toneAmber
class node_calculator_page,node_calculator_logic,node_agenda,node_agenda_logic,node_ai_guide toneMint
class node_ai_backend,node_agenda_backend,node_firebase_auth,node_firestore,node_groq,node_anthropic toneRose
class node_visitor,node_admin_actor toneIndigo
```

## Components

### Learning content

- [Network services lessons](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/ser.html): `pages/ser.html`
- [DNS lesson](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/dns.html): `pages/dns.html`
- [DHCP lesson](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/dhcp.html): `pages/dhcp.html`
- [JavaScript lessons](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/javascript.html): `pages/javascript.html`
- [JavaScript exercises](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/ejercicios_javascript.html): `pages/ejercicios_javascript.html`
- [HTML guide](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/guiahtml.html): `pages/guiahtml.html`
- [CSS guide](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/cssguia.html): `pages/cssguia.html`

### NEXUS platform

- [Hosting plans](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/plan-empresa.html): `pages/plan-empresa.html`
- [Plan configurator](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/plan-empresa.js): `js/plan-empresa.js`
- [Account and plan flows](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/auth-handlers.js): `js/auth-handlers.js`
- [Firebase setup](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/firebase-init.js): `js/firebase-init.js`
- [Admin console](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/admin-only.js): `js/admin-only.js`
- [Server configuration page](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/configuracion-servidor.html): `pages/configuracion-servidor.html`

### Interactive pages

- [Calculator](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/calculadora.html): `pages/calculadora.html`
- [Calculator logic](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/calculadora.js): `js/calculadora.js`
- [Agenda](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/agenda.html): `pages/agenda.html`
- [Agenda interactions](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/js/agenda.js): `js/agenda.js`
- [AI guide page](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/pages/aiguide.html): `pages/aiguide.html`

### Backends and services

- [Portfolio AI chat API](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/backend/index.js): `backend/index.js`
- [Tasks and admin API](https://github.com/jjbbpp1/jjbbpp1.github.io/blob/main/server/index.js): `server/index.js`
- **Firebase Authentication**
- **Firestore**
- **Groq chat API**
- **Anthropic Messages API**

### Other components

- **Site visitor**
- **Administrator**

## Connections

- Site visitor → Network services lessons: browses
- Site visitor → DNS lesson: studies
- Site visitor → DHCP lesson: studies
- Site visitor → JavaScript lessons: studies
- Site visitor → JavaScript exercises: practices
- Site visitor → HTML guide: studies
- Site visitor → CSS guide: studies
- Site visitor → Hosting plans: explores
- Site visitor → Calculator: uses
- Site visitor → Agenda: uses
- Site visitor → AI guide page: consults
- Plan configurator → Account and plan flows: delegates plan saving (evidence: `js/plan-empresa.js`)
- Account and plan flows → Firebase setup: imports clients (evidence: `js/auth-handlers.js`)
- Admin console → Firebase setup: imports clients (evidence: `js/admin-only.js`)
- Server configuration page → Firebase setup: imports auth
- Account and plan flows → Firebase Authentication: authenticates users (evidence: `js/auth-handlers.js`)
- Account and plan flows → Firestore: reads and writes (evidence: `js/auth-handlers.js`)
- Admin console → Firestore: manages user records (evidence: `js/admin-only.js`)
- Firebase setup → Firebase Authentication: initializes (evidence: `js/firebase-init.js`)
- Firebase setup → Firestore: initializes (evidence: `js/firebase-init.js`)
- Calculator → Calculator logic: uses script
- Agenda → Agenda interactions: uses script
- Site visitor → Portfolio AI chat API: sends chat
- Portfolio AI chat API → Groq chat API: requests completion (evidence: `backend/index.js`)
- Administrator → Admin console: manages accounts
- Admin console → Tasks and admin API: posts user creation (evidence: `js/admin-only.js`)
- Tasks and admin API → Firebase Authentication: creates users (evidence: `server/index.js`)
- Tasks and admin API → Firestore: stores profiles (evidence: `server/index.js`)
- Site visitor → Tasks and admin API: requests chat
- Tasks and admin API → Anthropic Messages API: forwards messages (evidence: `server/index.js`)
