HomeCase studiesMobile Field Inspection and Automated S3-Backed Compliance...

Case study · Calgary, Canada

Mobile Field Inspection and Automated S3-Backed Compliance Reporting for an Automotive Distributor Network

Automotive aftermarket — consumable products and services sold into vehicle retail and reconditioning through a distributor network

Automotive aftermarket distributors retain dealership accounts by proving that detailing bays, chemical dispensers, and reconditioning equipment remain calibrated and stocked. We engineered a cross-platform mobile inspection and automated reporting system built with React Native, React, Node.js, Express, MySQL, AWS S3, and SendGrid. Territory reps complete structured offline bay audits, upload photo evidence directly to S3 via presigned URLs, and trigger branded PDF compliance scorecards delivered automatically to dealership service directors upon completion.

Industry
Automotive aftermarket — consumable products and services sold into vehicle retail and reconditioning through a distributor network
Solution
A B2B field audit and automated reporting platform comprising an offline-capable React Native inspection app, a Node.js and Express API tier backed by MySQL, direct AWS S3 media storage, and SendGrid report distribution.
Platforms
Cross-platform · Web & API
Stack
React Native · React · Node.js · Express · MySQL · AWS
Location
Calgary, Canada · delivered remotely
Role
Engineering, with the team behind for mobile and QA

Delivered remotely for a business based in Calgary, Canada. Names withheld by agreement.

Project Overview

In the automotive aftermarket, selling chemical consumables, shop supplies, and reconditioning systems into dealership groups is only half the contract. Retaining those accounts depends on recurring on-site service visits: calibrating dilution equipment, verifying bay safety, auditing product stock, and proving value to dealership service directors who rarely walk the wash bay themselves.

We built a mobile field inspection and automated reporting platform powered by React Native, React, Node.js, Express, MySQL, AWS, S3, and SendGrid. Distributor representatives conduct structured audits offline across dealership bays, stream photographic evidence straight into AWS S3, and trigger polished compliance scorecards delivered automatically to dealership stakeholders upon sign-off.

Business Bottleneck

Before this platform, territory representatives documented site visits with smartphone camera rolls and ad-hoc notes, spending evenings assembling slide decks or Word documents to email to dealership managers. Many reports went out days late—or were skipped altogether during busy weeks—leaving service directors unaware of equipment calibration issues until consumable waste spiked or vehicle finish quality dropped.

At the distributor headquarters level, regional leaders had no consistent cross-account visibility. Because every rep formatted visit summaries differently, management could not compare bay compliance trends across territories, track recurring equipment failures, or prove consistent field service execution during annual contract renewals.

Architectural Strategy

The system was designed around three practical realities of B2B field distribution:

  1. Offline-first tablet and phone ergonomics. Reconditioning bays and basement chemical rooms routinely block cellular reception; React Native persists active audit templates, historical scores, and captured photos locally until sync completes.
  2. Zero-proxy binary uploads. Instead of pushing raw photo streams through Express, Node.js issues tightly scoped AWS S3 presigned URLs so mobile clients transfer media directly to durable cloud storage.
  3. Automated, verifiable report dispatch. Submitting an inspection triggers an asynchronous pipeline that verifies S3 media completeness, renders a branded PDF packet, and delivers it via SendGrid with full delivery tracking.

Core Capabilities

Field Audit Capture (React Native & React)

  • Account & Bay Context: Reps pull up assigned dealership rooftops, inspect prior visit deficiencies, and review installed equipment profiles before stepping onto the shop floor.
  • Weighted Inspection Templates: Dynamic checklists capture pass/fail statuses, numeric dilution readings, consumable stock counts, and mandatory remediation notes.
  • Inline Photo Annotation: Reps attach before-and-after bay photos tied to specific checklist questions so dealership managers see exact visual proof alongside each score.

Automated Reporting & Stakeholder Delivery (Node.js, AWS S3 & SendGrid)

  • Instant PDF Scorecards: Completed inspections compile into clean, branded compliance packets summarizing overall bay scores, highlighted deficiencies, and photographic evidence.
  • Automated Email Distribution: SendGrid delivers tailored summaries to dealership service directors, reconditioning managers, and regional distributor leads without manual rep formatting.
  • Delivery & Bounce Auditing: SendGrid event webhooks record opens and bounces back into MySQL so reps know immediately if a dealership contact address has gone stale.

Distributor Network Analytics & Administration

  • Territory & Hierarchy Governance: Administrators manage multi-tier distributor networks, assign dealership rooftops, and publish updated audit templates across regions.
  • Compliance Trend Monitoring: Regional managers filter inspection histories by distributor, dealership group, or failed equipment category to spot systemic issues early.

Technical Architecture

The mobile tier runs a React Native and React application structured around offline audit drafts and a deterministic media-sync state machine. When a rep finishes a visit, the client requests time-limited, key-prefixed presigned PUT URLs from the Express API, uploads compressed inspection photos straight to AWS S3, and then posts the finalized audit JSON containing verified object keys.

On AWS, the Node.js and Express backend validates territory authorization against MySQL, persists normalized inspection scores, and enqueues an asynchronous report-generation job. Background workers fetch required photo assets from S3 over private AWS networking, assemble the PDF scorecard, and invoke SendGrid APIs while logging message identifiers for webhook reconciliation.

Flow: React Native Inspection App (Offline Drafts) → Direct Photo Upload to AWS S3 (Presigned URLs) + Audit JSON → Node.js / Express API → MySQL (Hierarchies & Scores) → Async PDF Worker → SendGrid Automated Delivery & Webhooks.

Technology Stack

Category Technology
Mobile Inspection App React Native and React cross-platform client for iOS and Android tablets and phones
Backend API Service Node.js with Express providing structured REST endpoints and JWT role middleware
Relational Database MySQL storing distributor hierarchies, dealership accounts, audit templates, and item scores
Cloud Infrastructure AWS compute, managed database networking, and IAM-scoped service credentials
Evidence Storage AWS S3 with short-lived presigned PUT URLs for direct client-to-bucket photo uploads
Report Distribution SendGrid transactional email pipeline delivering PDF inspection packets and escalation alerts
Offline Audit Queue Local mobile persistence holding multi-bay checklists, scores, and pending S3 media manifests
PDF Generation Server-side headless rendering assembling scored checklists, remediation notes, and S3 thumbnails
Account Hierarchy Multi-tier distributor, sub-distributor, dealership group, and physical bay location modeling
Observability Structured Express request logging, upload checksum tracking, and SendGrid webhook auditing

Engineering Trade-offs & Solutions

Challenge Architectural Solution
High-resolution bay photos overwhelmed Node.js memory and stalled API responses Shifted all binary transfers to AWS S3 presigned URLs with strict content-type and max-byte policies, leaving Express to handle compact JSON payloads and state orchestration.
Automated reports risked emailing broken image boxes if a background photo upload lagged Enforced a two-step submission handshake: the audit record enters pending_media until Express verifies every referenced S3 object key exists, only then releasing the PDF build and SendGrid dispatch.
Independent distributors shared one cloud platform but required strict commercial separation Modeled explicit distributor_id and territory join predicates across MySQL queries and Express route middleware, scoping both API responses and S3 key prefixes per organization.
PDF rendering with dozens of embedded photos blocked event-loop responsiveness Isolated PDF generation into background worker processes outside the Express request cycle and pre-sized uploaded thumbnails so document assembly stayed fast and memory-bounded.
Stale dealership manager emails silently caused compliance reports to bounce Integrated SendGrid delivery and bounce webhooks back into MySQL, surfacing undelivered report warnings on the territory rep's mobile home screen so contact lists stay accurate.

Security & Reliability

B2B distributor networks require strict boundaries between competing regional partners and dealership accounts. Express middleware validates signed JWT claims and verifies territory ownership on every read and write endpoint, while S3 buckets remain completely private—accessible only via short-lived presigned upload tokens during capture and IAM-authenticated worker reads during PDF assembly.

To prevent data loss in patchy dealership garages, mobile audit drafts persist locally with client-generated idempotency keys. Re-submitting an interrupted inspection sync never duplicates database rows or fires duplicate SendGrid emails to dealership executives.

Performance & Scale

Removing binary photo traffic from the Node.js application tier keeps API CPU and memory utilization low even when dozens of territory reps synchronize afternoon audits simultaneously. AWS S3 absorbs bursty media writes elastically, and MySQL connection pooling paired with indexed (distributor_id, dealership_id, inspected_at) lookups keeps executive compliance dashboards responsive.

On mobile devices, client-side image downscaling prior to S3 upload cuts cellular data consumption significantly and shortens upload completion times before reps drive to their next dealership stop.

Operational Outcomes

Automating the path from bay-floor capture to SendGrid scorecard delivery eliminated evening report-writing backlogs for field representatives and gave dealership service directors consistent, same-day proof of equipment calibration and service quality.

Across the broader distributor network, standardized inspection data replaced anecdotal visit notes with comparable, auditable records—helping regional managers identify recurring equipment issues, verify field visit cadences, and reinforce retention during dealership contract reviews.

01 — Questions

asked about this kind of project

Why upload inspection photos directly from React Native to AWS S3 instead of routing them through Express?

Territory reps frequently capture dozens of high-resolution chemical-rack, dilution-valve, and vehicle-bay photos per dealership visit. Proxying multi-megabyte binary streams through Node.js ties up event-loop workers, memory buffers, and API bandwidth. Issuing short-lived, IAM-scoped presigned S3 URLs lets devices upload straight to object storage while Express handles lightweight JSON state transitions.

How does the system guarantee an automated SendGrid report never goes out with missing or broken photo links?

Report generation follows a strict two-phase commit pattern. The mobile client first registers the completed audit payload and confirms every expected S3 object key against server-verified ETag/head checks. Only once all required media keys resolve cleanly in S3 does the Node.js worker render the PDF scorecard and hand it to SendGrid.

How do field reps complete inspections inside concrete reconditioning bays with poor cellular coverage?

Before starting a dealership route, React Native syncs assigned accounts, prior visit scores, and versioned audit templates locally. Reps record scores, corrective actions, and photos completely offline; a resilient background queue persists pending S3 uploads and audit JSON until connectivity returns.

How are distributor boundaries and multi-rooftop dealership groups modeled in MySQL?

MySQL normalizes the commercial hierarchy across parent distributor organizations, regional managers, dealership groups, individual rooftop locations, and physical service bays. Every API query filters through the authenticated rep's territory assignments so independent distributors on the same platform never see competing account pricing or audit histories.

What happens if an inspection identifies a chemical dilution failure or unsafe bay condition?

Checklist questions carry configurable threshold rules and remediation flags. Failing a critical calibration check marks the bay non-compliant, attaches mandatory photo evidence, highlights the corrective action at the top of the SendGrid executive summary, and schedules a follow-up visit reminder for the territory rep.

How do you keep Node.js responsive while rendering multi-photo PDF reports?

PDF assembly and SendGrid delivery run asynchronously outside the HTTP request-response cycle. When a rep taps submit, Express validates and commits the inspection record immediately, returning confirmation to the mobile device while a dedicated background worker pulls thumbnails from S3, builds the PDF, and dispatches emails.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.