Urgent.News

What's breaking now, across thousands of outlets.

Tech

Real‑Time KPI Dashboard, Priority‑Action Strip & Docker Healthcheck Fix in a Vite‑React / NestJS Monorepo

Real‑Time KPI Dashboard, Priority‑Action Strip & Docker Healthcheck Fix in a Vite‑React / NestJS Monorepo TL;DR: I fixed a flaky Docker healthcheck that was resolving localhost to IPv6, added a new KPI endpoint for condos, and built a “Próxima acción” strip that pulls priority actions from a shared NestJS controller. The changes tighten our dev‑ops monitoring and give the UI instant, role‑aware…

Here is my rewrite of the original story in my own words:

The source described a series of technical improvements made to a Vite‑React / NestJS monorepo that includes both a web front‑end and an API back‑end. The key points were:

1. A flaky Docker healthcheck was causing CI builds to fail because the healthcheck endpoint was resolving to IPv6 (::1) while the NestJS API only listened on IPv4 (0.0.0.0). The fix was to use the service name "api" in the Docker compose file's healthcheck instead of localhost.

2. Product owners requested a real‑time KPI dashboard for condos showing income and expense data. This required a new backend endpoint. The implementation was a simple GET /complex/kpis endpoint in the NestJS `ComplexController` that fetched income and expense figures from a financial service and returned them as a small JSON payload.

3. The front‑end needed a "Next Action" strip that showed the next priority task for the logged‑in user. This required a shared endpoint in the NestJS `PriorityActionsController`. A dummy data set of actions was added to demonstrate the pattern, even though in a real app the actions would be fetched from a service.

All three changes were implemented in the source repository and involved updating the Docker compose file, the NestJS controllers and modules, and adapting the front‑end components. The result was tighter dev‑ops monitoring, instant role‑aware insights in the UI, and a working set of backend endpoints to support both the new KPI feature and the priority actions strip.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Markdown Database Pattern

Your filesystem is already a database. Most tools just don't treat it that way. That's the core idea behind the Markdown Database Pattern — written up properly on The Way of Markdown , a site we've…

  • Treats folder of Markdown files as database
  • Frontmatter fields as columns, directories as tables
  • Lightweight, version-controlled, queryable solution

More from Friday 28 August →