← All work
Infrastructure · 2021–22

Serverless Backend for a D2C Commerce Storefront

A D2C retail storefront

Overview

The serverless backend layer for a direct-to-consumer retail storefront platform. It exposes cloud functions that broker between the customer-facing apps, commerce data, and a set of external services, keeping business logic off the client and out of any always-on server.

The Challenge

A D2C storefront needs a lightweight, scalable backend that can handle order and catalog operations, sync content from an editorial source of truth, and call out to payments and media services, without standing up and maintaining dedicated infrastructure.

What We Built

A Firebase Functions deployment (functions/index.js) with CORS-enabled HTTP endpoints. The function package integrates Airtable (used as a managed content/data backend), the AWS SDK for cloud-service access, Axios for outbound HTTP, plus moment, randomstring, and the denizen helper. Firebase Admin handles privileged data access. A codeGen.js utility and test.js round out the repo, with firebase.json/.firebaserc defining the deployment targets.

Technologies & Approach

Firebase Cloud Functions for zero-ops serverless compute, Firebase Admin for trusted server-side data access, and Airtable as a flexible, non-technical-friendly data store. The AWS SDK extends reach to additional managed services. The pay-per-invocation model fit a storefront with bursty, event-driven traffic.

Outcome / Impact

Delivered a maintainable serverless backend that let the storefront and seller apps remain thin clients, with integrations centralized behind clean cloud-function endpoints.

Capabilities Demonstrated

  • Serverless backend architecture on Firebase Cloud Functions
  • Integration of managed data sources (Airtable, Firestore) and third-party SDKs
  • Secure server-side logic with Firebase Admin
  • Zero-ops, pay-per-use infrastructure for a commerce product
More work See all →