CASE STUDYCASE STUDY / FULL-STACK / MVP

Orbit.

Shared rules for web and mobile loyalty.

A Next.js business dashboard, Expo staff mobile app and shared TypeScript domain packages coordinate customer loyalty workflows, with Supabase/PostgreSQL as the data layer.

TypeScriptNext.jsReact NativeExpoSupabasePostgreSQLVitest
01 / DETAIL

The design problem

Points, stamps, permissions and reward transactions must behave consistently between business dashboard and staff mobile workflows. Diverging business rules across clients can cause inaccurate balances and unreliable redemption.

02 / DETAIL

Architecture and implementation

The shared TypeScript workspace organizes domain rules for permissions, validation and loyalty calculations. The web dashboard supports administration and the Expo staff app supports QR-based check-in and loyalty operations.

The Supabase/PostgreSQL layer includes SQL migrations, tenant-aware access rules and transactional functions. Source-reviewed protections include idempotency, row locks, audit records and reversal handling for changes to balances.

03 / DETAIL

Engineering and verification

The repository contains Vitest tests, SQL migration files, tenant-isolation test artifacts and continuous-integration configuration. These are implementation artifacts, not proof that every integration passes in a production environment.

The portfolio includes a high-level architecture flow describing this system.

04 / DETAIL

Current scope

Orbit remains an MVP/beta. Apple Wallet is not implemented, Google Wallet requires configuration, and billing is represented through a Stripe sandbox integration rather than verified live charging.

The original code review did not independently establish every end-to-end database workflow or a production deployment.