Backend API en Node.js y Express para Nexo, el gestor de mapas mentales.
10K+
Backend API de Nexo — gestor de mapas mentales con autenticación y versionado.
Built with Node.js, Express, PostgreSQL, JWT y bcryptjs.
Usa esta imagen junto con ingemedio/nexo-frontend y PostgreSQL:
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: nexo
POSTGRES_USER: nexo
POSTGRES_PASSWORD: nexo
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nexo -d nexo"]
interval: 5s
timeout: 3s
retries: 10
api:
image: ingemedio/nexo-api:latest
restart: unless-stopped
ports:
- "3001:3001"
environment:
PORT: 3001
PGHOST: postgres
PGPORT: 5432
PGDATABASE: nexo
PGUSER: nexo
PGPASSWORD: nexo
JWT_SECRET: cambia-esto-en-produccion
depends_on:
postgres:
condition: service_healthy
frontend:
image: ingemedio/nexo-frontend:latest
restart: unless-stopped
ports:
- "80:80"
depends_on:
- api
volumes:
pgdata:
| Variable | Defecto | Descripción |
|---|---|---|
PORT | 3001 | Puerto del servidor |
PGHOST | localhost | Host PostgreSQL |
PGPORT | 5432 | Puerto PostgreSQL |
PGDATABASE | nexo | Nombre BD |
PGUSER | nexo | Usuario BD |
PGPASSWORD | nexo | Contraseña BD |
JWT_SECRET | — | Secreto para firmar tokens JWT |
POST /api/auth/register — Registro de usuarioPOST /api/auth/login — Inicio de sesiónGET /api/auth/me — Perfil del usuario autenticadoGET /api/mindmaps — Listar mapas del usuarioPOST /api/mindmaps — Crear mapaGET /api/mindmaps/:id — Obtener mapaPUT /api/mindmaps/:id — Actualizar mapaDELETE /api/mindmaps/:id — Eliminar mapaGET /api/mindmaps/:id/versions — Listar versionesPOST /api/mindmaps/:id/versions — Guardar versiónDELETE /api/mindmaps/:id/versions/:vid — Eliminar versiónContent type
Image
Digest
sha256:a51aac3aa…
Size
57.2 MB
Last updated
3 months ago
docker pull ingemedio/nexo-api