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:
- 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.
- 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.
- 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.