-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack-presentation.html
More file actions
514 lines (459 loc) · 18.8 KB
/
stack-presentation.html
File metadata and controls
514 lines (459 loc) · 18.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NDP-EP Stack - Presentación Interactiva</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
padding: 20px;
min-height: 100vh;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
header {
text-align: center;
color: white;
margin-bottom: 40px;
padding: 30px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 15px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
header h1 {
font-size: 3em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
header p {
font-size: 1.2em;
opacity: 0.9;
}
.info-section {
background: white;
padding: 30px;
border-radius: 15px;
margin-bottom: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.info-section h2 {
color: #667eea;
margin-bottom: 15px;
font-size: 2em;
}
.info-section p {
line-height: 1.6;
color: #555;
margin-bottom: 10px;
}
.stack-title {
text-align: center;
color: white;
font-size: 2.5em;
margin-bottom: 30px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.stack-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
margin-bottom: 40px;
}
.service-card {
background: white;
border-radius: 15px;
padding: 25px;
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
cursor: pointer;
position: relative;
overflow: hidden;
}
.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: linear-gradient(90deg, #667eea, #764ba2);
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.service-card.api::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.service-card.database::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
.service-card.storage::before { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.service-card.streaming::before { background: linear-gradient(90deg, #43e97b, #38f9d7); }
.service-card.ui::before { background: linear-gradient(90deg, #fa709a, #fee140); }
.service-card.notebook::before { background: linear-gradient(90deg, #30cfd0, #330867); }
.service-icon {
font-size: 3em;
margin-bottom: 15px;
display: block;
}
.service-title {
font-size: 1.5em;
font-weight: bold;
margin-bottom: 10px;
color: #333;
}
.service-description {
color: #666;
margin-bottom: 15px;
line-height: 1.5;
font-size: 0.95em;
}
.service-port {
display: inline-block;
background: #f0f0f0;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9em;
color: #667eea;
font-weight: bold;
margin-bottom: 10px;
}
.service-status {
display: inline-block;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.85em;
font-weight: bold;
margin-left: 10px;
}
.status-healthy {
background: #d4edda;
color: #155724;
}
.service-link {
display: inline-block;
margin-top: 10px;
padding: 8px 20px;
background: linear-gradient(90deg, #667eea, #764ba2);
color: white;
border-radius: 25px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
.service-link:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.category-section {
margin-bottom: 50px;
}
.category-title {
color: white;
font-size: 2em;
margin-bottom: 20px;
text-align: center;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.architecture-diagram {
background: white;
padding: 40px;
border-radius: 15px;
margin-bottom: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
text-align: center;
}
.architecture-diagram h2 {
color: #667eea;
margin-bottom: 30px;
}
.flow-diagram {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
margin-top: 30px;
}
.flow-item {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 20px 30px;
border-radius: 10px;
font-weight: bold;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.flow-arrow {
font-size: 2em;
color: white;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-top: 20px;
}
.stat-card {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 25px;
border-radius: 15px;
text-align: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.stat-number {
font-size: 3em;
font-weight: bold;
margin-bottom: 10px;
}
.stat-label {
font-size: 1.1em;
opacity: 0.9;
}
footer {
text-align: center;
color: white;
margin-top: 50px;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 15px;
}
@media (max-width: 768px) {
header h1 {
font-size: 2em;
}
.stack-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>🚀 NDP-EP Stack</h1>
<p>National Data Platform - Endpoint API</p>
<p>Presentación Interactiva del Sistema Completo</p>
</header>
<div class="info-section">
<h2>📋 Sobre el Proyecto</h2>
<p><strong>NDP-EP API</strong> es una API REST que proporciona acceso unificado a la gestión de datasets en la National Data Platform (NDP).</p>
<p><strong>Características principales:</strong></p>
<ul style="margin-left: 20px; margin-top: 10px;">
<li>🔐 Autenticación integrada con NDP</li>
<li>🔄 Backend pluggable (CKAN o MongoDB)</li>
<li>📦 Gestión de almacenamiento S3 con MinIO</li>
<li>📊 Streaming de datos con Apache Kafka</li>
<li>🤖 Soporte para agentes AI via MCP</li>
<li>📈 Métricas y monitoreo del sistema</li>
</ul>
</div>
<div class="architecture-diagram">
<h2>🏗️ Arquitectura del Sistema</h2>
<div class="flow-diagram">
<div class="flow-item">Cliente / Usuario</div>
<span class="flow-arrow">→</span>
<div class="flow-item">Frontend (Port 3000)</div>
<span class="flow-arrow">→</span>
<div class="flow-item">API (Port 8002)</div>
<span class="flow-arrow">↓</span>
</div>
<div class="flow-diagram">
<div class="flow-item">MongoDB</div>
<div class="flow-item">MinIO S3</div>
<div class="flow-item">Kafka</div>
<div class="flow-item">JupyterLab</div>
</div>
</div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-number">9</div>
<div class="stat-label">Servicios</div>
</div>
<div class="stat-card">
<div class="stat-number">31</div>
<div class="stat-label">Tests Pasados</div>
</div>
<div class="stat-card">
<div class="stat-number">100%</div>
<div class="stat-label">Disponibilidad</div>
</div>
</div>
<h2 class="stack-title">🎯 Servicios del Stack</h2>
<!-- API Services -->
<div class="category-section">
<h3 class="category-title">🔌 APIs y Backend</h3>
<div class="stack-grid">
<a href="http://localhost:8002/docs" target="_blank" class="service-card api">
<span class="service-icon">🚀</span>
<div class="service-title">NDP-EP API</div>
<div class="service-description">
API REST principal con FastAPI. Gestión completa de datasets, recursos y servicios.
</div>
<span class="service-port">Port: 8002</span>
<span class="service-status status-healthy">✓ Healthy</span>
<div>
<span class="service-link">Ver Documentación →</span>
</div>
</a>
<a href="http://localhost:3000" target="_blank" class="service-card ui">
<span class="service-icon">🎨</span>
<div class="service-title">Frontend Web</div>
<div class="service-description">
Interfaz web para interactuar con la API de forma visual e intuitiva.
</div>
<span class="service-port">Port: 3000</span>
<span class="service-status status-healthy">✓ Running</span>
<div>
<span class="service-link">Abrir Frontend →</span>
</div>
</a>
</div>
</div>
<!-- Database Services -->
<div class="category-section">
<h3 class="category-title">💾 Bases de Datos</h3>
<div class="stack-grid">
<a href="http://localhost:8082" target="_blank" class="service-card database">
<span class="service-icon">🍃</span>
<div class="service-title">MongoDB</div>
<div class="service-description">
Base de datos NoSQL para el catálogo local. Backend moderno y escalable.
</div>
<span class="service-port">Port: 27018</span>
<span class="service-status status-healthy">✓ Healthy</span>
<div>
<span class="service-link">Acceso: admin / admin123 →</span>
</div>
</a>
<a href="http://localhost:8082" target="_blank" class="service-card ui">
<span class="service-icon">🎛️</span>
<div class="service-title">Mongo Express</div>
<div class="service-description">
Interfaz web para administrar MongoDB visualmente.
</div>
<span class="service-port">Port: 8082</span>
<span class="service-status status-healthy">✓ Running</span>
<div>
<span class="service-link">Admin Panel →</span>
</div>
</a>
</div>
</div>
<!-- Storage Services -->
<div class="category-section">
<h3 class="category-title">🗄️ Almacenamiento</h3>
<div class="stack-grid">
<a href="http://localhost:9003" target="_blank" class="service-card storage">
<span class="service-icon">📦</span>
<div class="service-title">MinIO S3</div>
<div class="service-description">
Almacenamiento de objetos compatible con S3. Gestión de buckets y archivos.
</div>
<span class="service-port">API: 9002 | Console: 9003</span>
<span class="service-status status-healthy">✓ Healthy</span>
<div>
<span class="service-link">Acceso: minioadmin / minioadmin123 →</span>
</div>
</a>
</div>
</div>
<!-- Streaming Services -->
<div class="category-section">
<h3 class="category-title">🌊 Streaming de Datos</h3>
<div class="stack-grid">
<a href="http://localhost:8081" target="_blank" class="service-card streaming">
<span class="service-icon">📡</span>
<div class="service-title">Apache Kafka</div>
<div class="service-description">
Plataforma de streaming distribuida para ingesta de datos en tiempo real.
</div>
<span class="service-port">Internal: 9093 | External: 9094</span>
<span class="service-status status-healthy">✓ Healthy</span>
<div>
<span class="service-link">Ver Kafka UI →</span>
</div>
</a>
<a href="http://localhost:8081" target="_blank" class="service-card ui">
<span class="service-icon">📊</span>
<div class="service-title">Kafka UI</div>
<div class="service-description">
Interfaz web para gestionar topics, mensajes y configuración de Kafka.
</div>
<span class="service-port">Port: 8081</span>
<span class="service-status status-healthy">✓ Running</span>
<div>
<span class="service-link">Abrir Dashboard →</span>
</div>
</a>
<div class="service-card streaming">
<span class="service-icon">🐘</span>
<div class="service-title">Zookeeper</div>
<div class="service-description">
Servicio de coordinación necesario para Kafka. Gestiona el cluster.
</div>
<span class="service-port">Port: 2181 (interno)</span>
<span class="service-status status-healthy">✓ Healthy</span>
</div>
</div>
</div>
<!-- Development Tools -->
<div class="category-section">
<h3 class="category-title">🔬 Herramientas de Desarrollo</h3>
<div class="stack-grid">
<a href="http://localhost:8888?token=testing_token" target="_blank" class="service-card notebook">
<span class="service-icon">📓</span>
<div class="service-title">JupyterLab</div>
<div class="service-description">
Entorno interactivo para análisis de datos, notebooks y desarrollo con Python.
</div>
<span class="service-port">Port: 8888</span>
<span class="service-status status-healthy">✓ Healthy</span>
<div>
<span class="service-link">Token: testing_token →</span>
</div>
</a>
</div>
</div>
<div class="info-section">
<h2>🛠️ Comandos Útiles</h2>
<div style="background: #f5f5f5; padding: 15px; border-radius: 8px; margin-top: 15px;">
<p><strong>Iniciar el stack:</strong></p>
<code style="background: white; padding: 5px 10px; border-radius: 5px; display: block; margin: 10px 0;">docker compose up -d</code>
<p style="margin-top: 20px;"><strong>Ver logs:</strong></p>
<code style="background: white; padding: 5px 10px; border-radius: 5px; display: block; margin: 10px 0;">docker compose logs -f [service-name]</code>
<p style="margin-top: 20px;"><strong>Detener el stack:</strong></p>
<code style="background: white; padding: 5px 10px; border-radius: 5px; display: block; margin: 10px 0;">docker compose down</code>
<p style="margin-top: 20px;"><strong>Ejecutar tests:</strong></p>
<code style="background: white; padding: 5px 10px; border-radius: 5px; display: block; margin: 10px 0;">.venv/bin/python test_all_endpoints.py</code>
</div>
</div>
<div class="info-section">
<h2>📚 Recursos Adicionales</h2>
<ul style="margin-left: 20px; margin-top: 10px;">
<li>📖 <strong>README.md</strong> - Documentación completa del proyecto</li>
<li>🔧 <strong>docker-compose.yml</strong> - Configuración de todos los servicios</li>
<li>⚙️ <strong>.env</strong> - Variables de entorno y configuración</li>
<li>🧪 <strong>test_all_endpoints.py</strong> - Suite completa de tests</li>
<li>🌐 <strong>API Docs</strong> - <a href="http://localhost:8002/docs" target="_blank" style="color: #667eea;">http://localhost:8002/docs</a></li>
</ul>
</div>
<footer>
<p><strong>National Data Platform - Endpoint API</strong></p>
<p>Stack corriendo en Docker Compose | Todos los servicios operativos</p>
<p style="margin-top: 10px; opacity: 0.8;">Generado automáticamente | 2025</p>
</footer>
</div>
</body>
</html>