Sign inSign up

ingemedio/nexo-frontend

By ingemedio

•Updated 3 months ago

Cliente web en React y TypeScript para Nexo, el gestor de mapas mentales (Servido con Nginx).

Image
0

10K+

ingemedio/nexo-frontend repository overview

Frontend de Nexo — gestor de mapas mentales construido con React, TypeScript, React Flow y Tailwind CSS.

Sirve el cliente SPA mediante Nginx y proxy inverso a la API.

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:
      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:

Cómo se construye

Multi-stage build:

  1. Stage 1 — Node 22 Alpine: npm install + npm run build
  2. Stage 2 — Nginx Alpine: copia el build y la config de nginx

El proxy /api/ redirige al backend automáticamente.

Tag summary

Content type

Image

Digest

sha256:d744cacaf…

Size

25 MB

Last updated

3 months ago

docker pull ingemedio/nexo-frontend