Full-Stack Systems
OEM Truck Parts B2B Platform
A production B2B truck-parts store. Pages arrive rendered from the server, every customer sees their own prices, and QuickBooks stays the single source of commercial truth.
- My role
- Sole full-stack engineer and architect
- Context
- OEM Truck PartsAug 2026 — Sep 2026
- Focus
- Next.js, Go, PostgreSQL, QuickBooks, Browser Extensions
Problem
QuickBooks ran the back office, but buyers cannot find a part or see their own price there, and a separate store's prices would drift from it. The supported API also omitted Price Rules.
Mechanism
One ledger, one storefront
The store is its own product, with crawlable pages and prices per customer. But every price on it is a line in QuickBooks, and only the server carries it across.
The request path, step by step
What the server decides
The page is rendered on the server and arrives complete. A customer's price is resolved per signed-in request, never cached, and no access token reaches the browser. Order totals are recalculated on the server.
A canonical URL
A visitor or a crawler asks for a catalog, brand, category or product page. Each is a first-class Next.js route.
Request-aware context
Server-only code decides which kind of read this is: a public one, which can be revalidated, or a signed-in one, which is scoped to the request and never stored.
A bounded API contract
The server calls the Go backend, validating both the request and the response against a schema.
The application read model
The backend answers from PostgreSQL: catalog, accounts and pricing synchronized from QuickBooks, which stays the commercial source.
HTML and page identity
The response carries the content, canonical metadata, JSON-LD and dehydrated data.
Hydration and the trusted path
The browser adds filters, account context and cart interactions. Prices and orders are still validated on the server.
Every customer has their own price
What a customer pays is set by Price Rules in QuickBooks, which the supported API does not expose. Catalog and customers arrive through the supported integration; Price Rules follow a separately authorized browser path, and each snapshot is checked for source and completeness before it can reach a price or an order.
Scope
One engineer, the whole store
I owned the Next.js storefront, Go backend, PostgreSQL model, Cognito identity, QuickBooks synchronization, image pipeline, server-authoritative ordering, deployment and the controlled Chrome/Safari integration used for pricing the supported API did not expose.
Outcome
A production B2B storefront the client runs on: a catalog search engines can index and new buyers can find, with every price still from QuickBooks.
Server delivery boundary
The catalog arrives as a page, not an empty application shell.
The browser adds interaction without ever becoming authoritative for a price or an order.