Skip to content
All projects

Case study · 2026 to present · Anonymized

Digital operations logbook for four power plants

I replaced the Excel shift logbooks with a real-time web application. Official reports are generated from the data, and the code has more than 1,400 automated tests.

Areas

  • Backend
  • Frontend
  • Data and BI
  • Infrastructure
The unit's availability dashboard: time in each state, availability factor and the history of changes with their author (fictitious people, units and data in this capture).

Project facts

Role
Full-stack engineer, sole developer (design, backend, frontend, database, deployment)
Period
Mar 2026 to present
Technologies
React · Vite · Node.js · Express · WebSockets
Public links
Internal system: the code is private, and names, data and diagrams were left out or recreated.

At a glance

Shifts were logged in Excel workbooks, and each day's official report was put together by copying cells by hand.

  • 1,400+

    automated test cases across backend and frontend

    Source: node:test and Vitest suites in the repository, September 2026

  • 516

    commits over 6 months of continuous development

    Source: Git history, March to September 2026

  • 38 of 39

    findings closed from an in-house security audit

    Source: Internal security audit report, 2026

The problem

Operations staff at four power plants kept their shift logs in Excel workbooks. Information was scattered across files, closing a shift depended on each person's discipline, and the official daily reports were assembled by hand by copying cells.

  1. Before:Each shift log was kept in its own Excel workbook.

    After:The crew logs everything in one application and sees each other's changes in real time.

  2. Before:Closing a shift depended on each person's discipline.

    After:When a shift closes, the application stores who was on it and that record no longer changes.

  3. Before:The official daily report was assembled by copying cells.

    After:The report is generated from the data, in the official template's format.

The solution

My role

Full-stack engineer, sole developer (design, backend, frontend, database, deployment)

  1. Gathered requirements with shift supervisors, operations engineers and chemists, and turned them into a domain model of shifts, logbooks and role-based permissions.

  2. Designed and built the frontend, the backend, the database and the corporate sign-in integration.

  3. Deployed and run the system on a company Linux server, with nginx, systemd and an update script with built-in checks.

  4. Documented 71 architecture decisions and drove an in-house security audit until 38 of 39 findings were closed.

Constraints

  • Users on 24-hour shifts whose operating day crosses midnight.

  • Mandatory corporate sign-in with role-based access.

  • Self-hosted server on the corporate network, behind a firewall that inspects TLS.

  • Minimal third-party dependencies to keep auditing and maintenance simple.

Decisions

  1. Shifts as a business entity, closed atomically

    Closing a shift stores an immutable snapshot of the team roster. If staff changes later, the history stays as it was.

    Ruled out

    • Store loose events and rebuild shifts at query time
  2. Real time over WebSockets with origin validation

    Several people work on the same shift at once and need to see each other's changes without reloading. The server validates the origin of every connection so another site cannot open one with the user's session.

    Ruled out

    • Poll the server every few seconds
  3. In-house .xlsx reader and writer on top of zlib

    The official report had to match the Excel template exactly without adding large libraries to a backend that has only 6 production dependencies.

    Ruled out

    • Use a third-party spreadsheet library
  4. A tested data contract with the generation dashboard

    Another production system consumes the logbook events. A contract test fails if either side changes the shape of the data, and each system writes only to its own schema.

    Ruled out

    • Let the dashboard read the logbook tables directly

Architecture

Each operator's browser talks to a Node.js API over HTTPS and WebSockets. The API stores everything in SQL Server, runs scheduled jobs that close shifts and ingest plant data, and exposes a data contract to the generation dashboard.
  1. 01Users

    • Operations web appReact, views per role and per plant
  2. 02Services

    • Logbook APIExpress, 19 domain modules
    • Real-time channelWebSockets with origin validation
    • Scheduled jobsShift closing, hourly ingestion and dispatch
  3. 03Data

    • SQL ServerCatalogs and transactions in separate schemas
    • Official Excel reportGenerated from the data
  4. 04Integrations

    • Microsoft Entra IDSign-in and role-based access
    • Plant historianHourly fuel consumption
    • Generation dashboardConsumes events through the contract

How data moves

  1. Operations web apptoLogbook APILogs events and closes shifts
  2. Real-time channeltoOperations web appPushes shift changes and active users
  3. Logbook APItoSQL ServerStores every entry with its shift
  4. Logbook APItoMicrosoft Entra IDValidates the session and permissions
  5. Plant historiantoScheduled jobsDelivers each hour of consumption
  6. Logbook APItoOfficial Excel reportBuilds the daily workbook
  7. Generation dashboardtoLogbook APIQueries events by period

Results

  • All four plants log their shifts in the application, with each shift's history frozen when it closes.

  • The official daily report is generated from the data in the template's format.

  • The generation dashboard consumes logbook events through a tested contract, without touching its tables.

What I would do differently

  • From day one I would prioritize tests for the rules that must never break, such as never deleting data from a real plant, over overall coverage.

  • I would move the scheduled jobs into a separate service earlier, so the API can restart without pausing plant data ingestion.

Technologies

  • WebSockets
  • SQL Server
  • Microsoft Entra ID
  • Microsoft Graph
  • Excel
  • systemd