Repository navigation
Home
DRomothewriter edited this page Nov 26, 2026
·
2 revisions
Aplicación web SPA de Orbit construida en Angular con chat en tiempo real, comunidades, presencia de amigos y videollamadas WebRTC sobre Mediasoup.
Note
Documentación alineada al código real de DRomothewriter/Orbit-Frontend (v1.0.2). El módulo de calendario permanece oculto en el header para v1 (ver Roadmap v2).
| Capa | Tecnología | Versión (package.json) |
Propósito |
|---|---|---|---|
| Framework SPA | Angular + Angular Material | ^22.3.0 |
Componentes standalone, routing lazy y UI |
| Estilos | SCSS + Tailwind CSS | ^4.1.15 |
Paleta central (src/_colors.scss) y utilidades CSS |
| Tiempo Real | socket.io-client |
^4.8.1 |
Presencia, mensajería instantánea, notificaciones y señalización |
| WebRTC SFU | mediasoup-client |
^3.18.1 |
Transports de envío/recepción de audio y video |
| Auth Social | @abacritt/angularx-social-login |
^2.4.0 |
Google Sign-In (GoogleLoginProvider) |
| Estado Reactivo | RxJS (BehaviorSubject) |
~7.8.0 |
Estado compartido entre vistas, modales y servicios |
| Pruebas & Lint | Karma/Jasmine + Cypress + ESLint Security |
~6.4 / ^16.3 / ^10.15
|
Unit tests (lcov), E2E/Component tests y linting de seguridad |
flowchart LR
USER["Usuario (Browser)"] --> CF["CloudFront + S3 Privado (OAC + SRI)"]
CF --> SPA["Orbit-Frontend (Angular SPA)"]
subgraph CLIENT["Capas del Cliente"]
ROUTES["app.routes.ts + authGuard"]
SVC["Core Services (RxJS BehaviorSubject)"]
SOCK["SocketService (socket.off + OnDestroy)"]
CALL["CallService (mediasoup-client)"]
end
SPA --> ROUTES
ROUTES --> SVC
SVC -->|"HTTPS REST (Bearer JWT)"| API["Orbit-Backend API"]
SOCK <-->|"WSS /socket.io/"| WS["Orbit-Backend Socket.IO"]
CALL <-->|"UDP 10000-10100 (RTP/RTCP)"| SFU["Mediasoup SFU"]
SPA -->|"OAuth2 idToken"| GOAUTH["Google Identity"]
| Ruta | Responsabilidad |
|---|---|
src/app/auth/ |
Pantallas públicas: login, register, verify-email, forgot-password, reset-password
|
src/app/home/ |
Layout autenticado: header, communities-nav, group-nav, friends-panel, chat
|
src/app/shared/services/ |
11 servicios core (Auth, Token, User, Community, Group, Message, Notifications, Socket, Call, Modals, Events) |
src/app/shared/guards/ |
authGuard funcional (CanActivateFn) basado en TokenService
|
src/app/shared/components/modals/ |
11 modales (crear comunidad/grupo, info, añadir miembros, perfil, llamada entrante, calendario v2) |
src/app/shared/components/video-call/ |
Ventana de videollamada multi-participante acoplada a CallService
|
src/app/shared/types/ |
Interfaces TypeScript y enums (UserStatus, MessageType, NotificationType) |
- Architecture and Features — Diseño por feature, teardown de sockets y videollamada flotante.
-
API and Contracts — Rutas,
authGuard, servicios RxJS y contratos REST/Socket.IO. - DevSecOps and Workflows — Gates de CI/CD, SRI, Cosign y despliegue a S3/CloudFront.
- Contributing and Local Workflow — Ramas, entornos y comandos obligatorios pre-PR.
-
Troubleshooting and Runbook — Karma headless en macOS,
_colors.scss,sessionStoragey OAuth.
Inicio
Diseño y Contratos
DevSecOps y Operación
Ecosistema Orbit