Delivered remotely for a business based in Denver, United States. Names withheld by agreement.
Project Overview
Commercial construction projects fail or stall in the gap between physical field execution and office financial tracking. On active sites—from subterranean parking structures to remote industrial builds—cellular coverage drops unpredictably, leaving superintendents taking handwritten notes and snapping unindexed phone photos that reach project managers days later. Meanwhile, trade subcontractors submit monthly progress billings via inconsistent spreadsheets that project engineers must manually verify against field completion before releasing retainage.
We engineered a construction site progress and subcontractor coordination portal powered by Next.js, NestJS, and PostgreSQL, paired with a cross-platform mobile field client. The system unifies offline-resilient daily field logs, blueprint-pinned punch lists, RFI routing, and Schedule of Values (SOV) progress billing into one deterministic source of truth.
Field Coordination Bottlenecks
Prior to building this unified portal, project teams struggled with recurring breakdowns between site trailers and corporate accounting:
- Delayed Progress Visibility: Superintendents transcribed manpower headcounts, weather delays, and concrete pour logs at the end of long shifts, creating multi-day blind spots for project executives.
- Unverifiable Subcontractor Draws: Trade partners submitted percentage-complete claims disconnected from verified field inspections, forcing tedious back-and-forth reconciliations every billing cycle.
- Lost Spatial Context on Defects: Deficiency photos lacked exact floorplan coordinates, trade assignments, and due dates, causing rework items to slip past commissioning deadlines.
- Fragmented Document Control: Subcontractors frequently built off superseded drawing revisions when updated architectural sheets circulated over ad-hoc email threads.
Architectural Strategy
We adopted a shared-contract TypeScript architecture spanning Next.js for office and subcontractor web workspaces, React Native for cross-platform iOS/Android field capture, and NestJS for backend domain orchestration. Designing for intermittent connectivity shaped the entire data layer: every field record carries client-generated UUIDv7 identifiers and monotonic sync checkpoints so offline work merges cleanly without duplicate logs or dropped photos.
Inside NestJS, strict state-machine workflows govern RFIs, change-order requests, and monthly payment applications. PostgreSQL transactional boundaries bind field completion sign-offs directly to financial Schedule of Values lines, ensuring billing approvals reflect verified physical installation.
Core Capabilities
Offline-First Daily Logs & Manpower Capture
Foremen and superintendents record trade headcounts, equipment utilization, material deliveries, safety toolbox talks, and weather delays directly on tablets or phones with zero signal. Queued entries flush automatically when devices reconnect, tagging timestamps from both capture and server commit.
Blueprint-Pinned Punch Lists & Inspections
Users drop color-coded pins onto tiled architectural floorplans to log quality defects, attach before/after photos, assign trade accountability, and track resolution sign-offs. Superseded drawing overlays highlight revision clouds so teams never inspect against outdated sheets.
Subcontractor Schedule of Values & Draw Portal
Subcontractors log into a scoped Next.js portal to submit monthly progress applications against contracted CSI cost codes, upload conditional lien waivers, and track retainage balances. Automated validation checks block submissions missing required safety or insurance documentation.
RFI & Submittal Routing Workflows
Project engineers log Requests for Information linked to specific drawing coordinates and specification sections, routing them to architects or structural consultants with SLA countdowns and automatic distribution of official responses to affected trades.
Technical Architecture
Flow: Cross-Platform Field App (SQLite) & Next.js Web (IndexedDB) -> Delta Sync & REST Endpoints -> NestJS Domain Modules & RBAC Guards -> PostgreSQL Transactional Core -> BullMQ / Redis Workers -> Amazon S3 Media & PDF Draw Packets
- Web & Subcontractor Interface: Next.js App Router delivers fast server-rendered cost dashboards for project executives and isolated self-service portals for dozens of trade subcontractors per job.
- Cross-Platform Field Client: React Native shares validation schemas and API types with the web codebase, utilizing local SQLite storage and background upload queues for heavy site imagery.
- NestJS Domain Core: Organizes Projects, Daily Logs, Blueprints, RFIs, and Progress Billing into isolated NestJS modules guarded by trade-scoped RBAC policies.
- PostgreSQL & BullMQ Pipeline: PostgreSQL enforces referential integrity across CSI division hierarchies and draw ledgers, while BullMQ workers compile multi-page AIA-style PDF payment packets and daily summary digests asynchronously.
Technology Stack
| Category | Technology Detail |
|---|---|
| Office & Sub Portal | Next.js (App Router) and TypeScript delivering SSR dashboards and subcontractor draw workspaces |
| Cross-Platform Field App | React Native (Expo) mobile client with local SQLite sync queue for underground and remote sites |
| Backend Services | NestJS modular TypeScript API enforcing project RBAC, workflow state machines, and webhooks |
| Primary Database | PostgreSQL 16 storing CSI cost codes, Schedule of Values trees, daily logs, and draw ledgers |
| Offline Web Cache | IndexedDB and service workers caching active floorplans and inspection forms on ruggedized tablets |
| Media & Blueprints | Amazon S3 with multipart presigned uploads and tiled PDF blueprint rasterization |
| Queue & Events | BullMQ on Redis handling PDF draw packet compilation, weather-log enrichment, and alerts |
| Real-Time Sync | Delta-sync endpoints with server-assigned Lamport sequence tokens and idempotent mutation logs |
| Audit & Compliance | Immutable timestamped photo hashes, lien-waiver gates, and safety sign-off records |
Engineering Trade-offs & Solutions
| Architectural Challenge | Engineering Resolution |
|---|---|
| Preventing duplicate daily logs during flaky cellular handoffs | Required client-generated UUIDv7 keys and idempotency headers on every sync mutation so repeated retries resolve safely on the server. |
| Rendering 50MB architectural PDFs smoothly on mid-range jobsite tablets | Pre-processed uploaded drawing sets into pyramidal map tiles via background workers so clients stream only visible zoom regions. |
| Protecting trade pricing privacy within a shared project portal | Partitioned all SOV, change-order, and draw queries through mandatory NestJS trade-contract guards verifying explicit subcontract ownership. |
| Avoiding billing discrepancies between field sign-offs and accounting draws | Locked draw approval transactions in PostgreSQL against verified inspection milestones and enforced database-level bounds on cumulative billed percentages. |
Security & Reliability
Commercial projects involve sensitive subcontract pricing, safety incident documentation, and statutory lien waivers. Authentication enforces short-lived JWTs with refresh rotation and optional enterprise SSO for general contractor staff, while trade partners authenticate via scoped organization accounts bound strictly to their active subcontracts.
Every site photo uploaded for dispute resolution or progress proof records a SHA-256 checksum alongside device capture metadata and server receipt timestamps. Resumable multipart S3 uploads ensure large batches of high-resolution site photos survive sudden connection drops without corrupting partially transferred binaries or stalling foreground UI interactions.
Performance & Scale
Construction portfolios fluctuate seasonally, spiking in concurrent field syncs at morning crew check-in and late-afternoon log submission, followed by intense financial batching around monthly billing cutoffs. Using cursor-based delta synchronization minimizes mobile payload sizes by transferring only modified records since the device's last confirmed sequence token. On the server side, PostgreSQL partial indexes on open punch items and active drawing revisions keep portfolio-wide executive rollups crisp even across multi-year infrastructure programs.
Operational Outcomes
Replacing paper clipboards and fragmented email attachments with a synchronized field-to-office platform gave superintendents immediate clarity on open trade deficiencies and drawing revisions while offline in the field. Project engineers gained verifiable photographic evidence tied directly to Schedule of Values lines, accelerating monthly draw reviews and eliminating guesswork during closeout and commissioning.