Building a Workflow Engine for Multi-Step Approvals: NestJS, PostgreSQL, and React

A deep dive into building a reusable state-machine workflow engine that powers leave requests, AP vouchers, and AR invoices in a custom ERP — with NestJS backend, JSONB history in PostgreSQL, and a React status UI.