Skip to content

Commit 1e37a98

Browse files
committed
🚀 feat: Initial Neural Nexus complete structure
- Core Rust/Python infrastructure - Docker orchestration with full services - Kubernetes manifests and configs - CI/CD pipeline with GitHub Actions - Complete documentation suite - Edge device support (Raspberry Pi, Jetson, Generic) - Inference engine with ONNX/PyTorch support - Security hardening and monitoring - Performance benchmarks and comprehensive testing - Model management and optimization - Distributed communication (gRPC, MQTT) - Neuromorphic processing foundation
1 parent bad9529 commit 1e37a98

38 files changed

+1182
-117
lines changed

**Plataforma

Whitespace-only changes.

.env

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,44 @@
1-
NEURAL_NEXUS_ENV=development
2-
ORCHESTRATOR_HOST=localhost
3-
ORCHESTRATOR_PORT=8080
4-
POSTGRES_PASSWORD=neural_nexus_2024
5-
REDIS_PASSWORD=redis_neural_nexus
6-
MQTT_USERNAME=neural_nexus
7-
MQTT_PASSWORD=mqtt_neural_nexus
8-
CARGO_TERM_COLOR: always
9-
RUST_BACKTRACE: 1
10-
# Core
11-
NEURAL_NEXUS_ENV=development
12-
ORCHESTRATOR_URL=http://localhost:8080
13-
DATABASE_URL=postgresql://...
14-
REDIS_URL=redis://...
15-
16-
# Security
17-
JWT_SECRET=your-secret-here
18-
API_KEY_REQUIRED=false
19-
20-
# Edge Node
21-
NODE_ID=my-node-001
22-
NODE_TYPE=raspberry-pi
1+
# 🧠 Neural Nexus - Environment Variables Example
2+
3+
# Environment
4+
NEURAL_NEXUS_ENV=development
5+
6+
# Orchestrator
7+
ORCHESTRATOR_BIND_ADDRESS=0.0.0.0:8080
8+
GRPC_BIND_ADDRESS=0.0.0.0:50051
9+
HTTP_BIND_ADDRESS=0.0.0.0:8080
10+
11+
# Database
12+
DATABASE_URL=postgresql://postgres:password@localhost:5432/neural_nexus
13+
DATABASE_MAX_CONNECTIONS=10
14+
15+
# Redis
16+
REDIS_URL=redis://localhost:6379
17+
REDIS_MAX_CONNECTIONS=10
18+
19+
# MQTT
20+
MQTT_BROKER_URL=mqtt://localhost:1883
21+
MQTT_USERNAME=neural_nexus
22+
MQTT_PASSWORD=change_me_in_production
23+
24+
# Security
25+
JWT_SECRET=your-256-bit-secret-change-in-production
26+
API_KEY_REQUIRED=false
27+
28+
# Node Settings (for edge nodes)
29+
NODE_ID=
30+
NODE_TYPE=generic
31+
NODE_LOCATION=
32+
ORCHESTRATOR_URL=http://localhost:8080
33+
34+
# Models
35+
MODEL_STORAGE_PATH=./data/models
36+
MODEL_AUTO_DOWNLOAD=true
37+
38+
# Monitoring
39+
PROMETHEUS_ENABLED=true
40+
PROMETHEUS_BIND_ADDRESS=0.0.0.0:9090
41+
42+
# Logging
43+
LOG_LEVEL=info
44+
LOG_FORMAT=json

.neural-nexus-status

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
INTEGRATION_DATE=2025-10-10
2-
INTEGRATION_TIME=01:06:44
1+
INTEGRATION_DATE=2025-11-24
2+
INTEGRATION_TIME=16:27:02
33
GIT_BRANCH=main
44
GIT_REMOTE=https://github.com/mechmind-dwv/core-system.git
55
PROJECT_VERSION=0.1.0

configurar-grafana-completo.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/bash
2+
echo "🎯 CONFIGURACIÓN COMPLETA GRAFANA DESDE CONSOLA"
3+
echo "=============================================="
4+
5+
# Configurar datasource Prometheus
6+
echo "📊 Configurando datasource Prometheus..."
7+
curl -X POST "http://admin:HelioBio2025!@localhost:3002/api/datasources" \
8+
-H "Content-Type: application/json" \
9+
-d '{
10+
"name":"Prometheus",
11+
"type":"prometheus",
12+
"url":"http://nn-prometheus:9090",
13+
"access":"proxy",
14+
"basicAuth":false,
15+
"isDefault":true
16+
}' > /dev/null 2>&1 && echo "✅ Prometheus configurado"
17+
18+
# Crear dashboard HelioBio
19+
echo "🌍 Creando dashboard HelioBio..."
20+
curl -X POST "http://admin:HelioBio2025!@localhost:3002/api/dashboards/db" \
21+
-H "Content-Type: application/json" \
22+
-d '{
23+
"dashboard": {
24+
"title": "🌍 HelioBio Cosmic Monitor",
25+
"tags": ["chizhevsky", "heliobio"],
26+
"panels": [
27+
{
28+
"id": 1,
29+
"title": "TAC Rate Colectivo",
30+
"type": "stat",
31+
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
32+
"targets": [{"expr": "tac_rate_colectivo", "refId": "A"}]
33+
}
34+
],
35+
"time": {"from": "now-6h", "to": "now"}
36+
},
37+
"overwrite": true
38+
}' > /dev/null 2>&1 && echo "✅ Dashboard creado"
39+
40+
echo ""
41+
echo "🎉 CONFIGURACIÓN COMPLETADA"
42+
echo "=========================="
43+
echo "🌐 Accede a: http://localhost:3002"
44+
echo "📊 Dashboard: 🌍 HelioBio Cosmic Monitor"
45+
echo "👤 Usuario: admin"
46+
echo "🔑 Password: HelioBio2025!"

configurar-grafana-final.sh

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#!/bin/bash
2+
echo "🎯 CONFIGURACIÓN GRAFANA - CARACTERES CORREGIDOS"
3+
echo "=============================================="
4+
5+
# Configurar datasource (escapando el !)
6+
echo "📊 Configurando datasource Prometheus..."
7+
curl -X POST "http://admin:HelioBio2025"'!'"@localhost:3002/api/datasources" \
8+
-H "Content-Type: application/json" \
9+
-d '{
10+
"name":"Prometheus-HelioBio",
11+
"type":"prometheus",
12+
"url":"http://nn-prometheus:9090",
13+
"access":"proxy",
14+
"basicAuth":false,
15+
"isDefault":true
16+
}' > /dev/null 2>&1
17+
18+
# Crear dashboard HelioBio
19+
echo "🌍 Creando dashboard HelioBio..."
20+
curl -X POST "http://admin:HelioBio2025"'!'"@localhost:3002/api/dashboards/db" \
21+
-H "Content-Type: application/json" \
22+
-d '{
23+
"dashboard": {
24+
"id": null,
25+
"title": "HelioBio Cosmic Monitor",
26+
"tags": ["chizhevsky", "heliobio"],
27+
"timezone": "browser",
28+
"panels": [
29+
{
30+
"id": 1,
31+
"title": "TAC Rate Colectivo",
32+
"type": "stat",
33+
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
34+
"targets": [{"expr": "tac_rate_colectivo", "refId": "A"}],
35+
"fieldConfig": {
36+
"defaults": {
37+
"color": {"mode": "thresholds"},
38+
"thresholds": {
39+
"steps": [
40+
{"value": null, "color": "green"},
41+
{"value": 1.5, "color": "yellow"},
42+
{"value": 2.0, "color": "red"}
43+
]
44+
},
45+
"unit": "short",
46+
"decimals": 2
47+
}
48+
}
49+
}
50+
],
51+
"time": {"from": "now-6h", "to": "now"},
52+
"refresh": "30s"
53+
},
54+
"overwrite": true
55+
}' > /dev/null 2>&1
56+
57+
echo "✅ Configuración completada"
58+
echo "🌐 Accede a: http://localhost:3002"
59+
echo "📊 Busca: HelioBio Cosmic Monitor"

configurar-grafana.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
echo "🎯 Configurando Grafana automáticamente..."
3+
4+
# Esperar que Grafana esté listo
5+
sleep 10
6+
7+
# Configurar data source via API
8+
curl -X POST "http://localhost:3002/api/datasources" \
9+
-H "Content-Type: application/json" \
10+
-u "admin:neural_nexus_admin" \
11+
-d '{
12+
"name": "Prometheus",
13+
"type": "prometheus",
14+
"url": "http://nn-prometheus:9090",
15+
"access": "proxy",
16+
"basicAuth": false
17+
}' && echo "✅ Data Source configurado"
18+
19+
echo "🚀 Grafana listo en http://localhost:3002"

core/distributed/Cargo.toml

Whitespace-only changes.

core_system_setup.sh

100644100755
File mode changed.

deploy-unificado.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
echo "🚀 DEPLOYMENT UNIFICADO: Core-System + HelioBio"
3+
echo "=============================================="
4+
5+
# 1. Verificar sistema existente
6+
echo "🔍 Analizando core-system actual..."
7+
docker-compose config 2>/dev/null && echo "✅ Docker Compose detectado" || echo "⚠️ Sin Docker Compose"
8+
[ -f "package.json" ] && echo "✅ Node.js detectado" || echo "⚠️ Sin Node.js"
9+
[ -f "requirements.txt" ] && echo "✅ Python detectado" || echo "⚠️ Sin Python"
10+
11+
# 2. Integrar HelioBio
12+
echo "🌌 Integrando módulos HelioBio..."
13+
./integrar-heliobio.sh
14+
15+
# 3. Probar integración
16+
echo "🧪 Probando integración..."
17+
python3 heliobio/social/analisis_tac_rate.py
18+
19+
echo "🎉 DEPLOYMENT UNIFICADO COMPLETADO"
20+
echo ""
21+
echo "📊 SISTEMA INTEGRADO:"
22+
echo " • Core-System existente ✅"
23+
echo " • Módulos HelioBio ✅"
24+
echo " • Análisis TAC Rate ✅"
25+
echo ""
26+
echo "🔮 Próximo paso: Ejecutar tu sistema normal + módulos HelioBio"

docker-compose.yml

Lines changed: 36 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: '3.8'
2+
13
services:
24
# 🧠 Core Neural Nexus Services
35
neural-nexus-orchestrator:
@@ -8,16 +10,8 @@ services:
810
ports:
911
- "8082:8080"
1012
- "50051:50051"
11-
environment:
12-
- RUST_LOG=info
13-
- DATABASE_URL=postgresql://postgres:password@postgres:5432/neural_nexus
14-
- REDIS_URL=redis://redis:6379
15-
- MQTT_BROKER=mqtt://mosquitto:1883
16-
volumes:
17-
- .:/app
1813
networks:
1914
- neural-nexus
20-
restart: unless-stopped
2115

2216
neural-nexus-node:
2317
image: rust:1.70
@@ -26,18 +20,39 @@ services:
2620
command: /bin/bash -c "echo '⚡ Neural Nexus Edge Node ready' && tail -f /dev/null"
2721
ports:
2822
- "8083:8081"
23+
depends_on:
24+
- neural-nexus-orchestrator
25+
networks:
26+
- neural-nexus
27+
28+
# 📊 Monitoring Stack
29+
grafana:
30+
image: grafana/grafana:latest
31+
container_name: nn-grafana
2932
environment:
30-
- RUST_LOG=info
31-
- NODE_ID=node-001
32-
- ORCHESTRATOR_URL=http://neural-nexus-orchestrator:8080
33+
- GF_SECURITY_ADMIN_PASSWORD=HelioBio2025!
34+
ports:
35+
- "3002:3000"
3336
volumes:
34-
- .:/app
37+
- grafana_data:/var/lib/grafana
38+
networks:
39+
- neural-nexus
40+
41+
prometheus:
42+
image: prom/prometheus:latest
43+
container_name: nn-prometheus
44+
command:
45+
- '--config.file=/etc/prometheus/prometheus.yml'
46+
- '--storage.tsdb.path=/prometheus'
47+
- '--web.enable-lifecycle'
48+
ports:
49+
- "9091:9090"
50+
volumes:
51+
- prometheus_data:/prometheus
3552
networks:
3653
- neural-nexus
37-
restart: unless-stopped
38-
depends_on:
39-
- neural-nexus-orchestrator
4054

55+
# 🗄️ Data Services
4156
postgres:
4257
image: postgres:15-alpine
4358
container_name: nn-postgres
@@ -46,17 +61,11 @@ services:
4661
- POSTGRES_USER=postgres
4762
- POSTGRES_PASSWORD=password
4863
ports:
49-
- "5433:5432"
64+
- "5434:5432"
5065
volumes:
5166
- postgres_data:/var/lib/postgresql/data
5267
networks:
5368
- neural-nexus
54-
restart: unless-stopped
55-
healthcheck:
56-
test: ["CMD-SHELL", "pg_isready -U postgres"]
57-
interval: 10s
58-
timeout: 5s
59-
retries: 5
6069

6170
redis:
6271
image: redis:7-alpine
@@ -67,63 +76,13 @@ services:
6776
- redis_data:/data
6877
networks:
6978
- neural-nexus
70-
restart: unless-stopped
71-
healthcheck:
72-
test: ["CMD", "redis-cli", "ping"]
73-
interval: 10s
74-
timeout: 5s
75-
retries: 5
76-
77-
mosquitto:
78-
image: eclipse-mosquitto:2.0
79-
container_name: nn-mosquitto
80-
ports:
81-
- "1884:1883"
82-
- "9002:9001"
83-
volumes:
84-
- mosquitto_data:/mosquitto/data
85-
- mosquitto_logs:/mosquitto/log
86-
networks:
87-
- neural-nexus
88-
restart: unless-stopped
89-
command: mosquitto -c /mosquitto-no-auth.conf
9079

91-
prometheus:
92-
image: prom/prometheus:latest
93-
container_name: nn-prometheus
94-
ports:
95-
- "9091:9090"
96-
volumes:
97-
- prometheus_data:/prometheus
98-
command:
99-
- '--config.file=/etc/prometheus/prometheus.yml'
100-
- '--storage.tsdb.path=/prometheus'
101-
- '--web.enable-lifecycle'
102-
networks:
103-
- neural-nexus
104-
restart: unless-stopped
105-
106-
grafana:
107-
image: grafana/grafana:latest
108-
container_name: nn-grafana
109-
ports:
110-
- "3002:3000" # Usando puerto 3002
111-
environment:
112-
- GF_SECURITY_ADMIN_PASSWORD=neural_nexus_admin
113-
volumes:
114-
- grafana_data:/var/lib/grafana
115-
networks:
116-
- neural-nexus
117-
restart: unless-stopped
80+
networks:
81+
neural-nexus:
82+
driver: bridge
11883

11984
volumes:
85+
grafana_data:
86+
prometheus_data:
12087
postgres_data:
12188
redis_data:
122-
mosquitto_data:
123-
mosquitto_logs:
124-
prometheus_data:
125-
grafana_data:
126-
127-
networks:
128-
neural-nexus:
129-
driver: bridge

0 commit comments

Comments
 (0)