Fixed · AI code rescue

Dr. Golly

Inherited a broken AI-generated codebase. We fixed it in place and shipped both platforms.

2
Platforms (web + React Native)
13+
Course modules shipped
4
Currencies supported
Dr. Golly web dashboard and mobile app side by side
01 / The challenge

AI-generated code that looked finished and wasn't.

Dr. Golly came to us with an AI-generated codebase that demoed well and couldn't ship: insecure authentication, payment processing that failed under real conditions, no error handling, and a mobile experience that didn't work.

The product had to run on web and mobile, take payments across Australia, the US, Europe, and the UK, and hold up for parents using it at 3am. A rebuild was on the table. It wasn't necessary.

02 / What we shipped

A production-grade platform across web and mobile.

Dual-Platform Architecture

React 18 + Vite on web, React Native + Expo on mobile, one shared Node.js backend serving both.

Two Auth Models

Sessions for web, JWT with secure refresh for mobile — each platform gets the model it needs.

Multi-Currency Stripe

Regional pricing in AUD, USD, EUR, and GBP with automatic currency detection.

Course Platform

13+ courses and 100+ lessons with progress tracking and dynamic content delivery.

Klaviyo Automation

Customer segmentation, email campaigns, and lifecycle messaging wired to product events.

Subscription Tiers

Gold and Platinum memberships with recurring billing, coupon codes, and partner discounts.

Dr. Golly mobile app — tracking journal, sleep course, and analytics dashboard
Sleep tracking, expert courses, and daily growth analytics — all linked to the child's profile.
03 / How it ran

Audit, fix, ship — in that order.

  1. 01

    Code Assessment

    Analyzed the AI-generated code and named the issues blocking a production deploy.

  2. 02

    Architecture Redesign

    Designed a dual-platform architecture with a shared backend serving web and React Native.

  3. 03

    Production Fix

    Fixed web and mobile in place, wired the integrations, shipped to production.

04 / Stack

The stack that shipped both platforms.

  • React 18 + Vite
    Web application
  • React Native + Expo
    Native iOS & Android apps
  • TypeScript
    Type-safe across platforms
  • Node.js/Express
    TypeScript backend API
  • Neon Postgres
    Serverless PostgreSQL database
  • Stripe Payments
    Multi-currency processing (AUD/USD/EUR/GBP)
  • Klaviyo
    Marketing automation and segmentation
  • Dual Auth
    Sessions (web) + JWT (mobile)
05 / The outcome

Both platforms in production. No rebuild.

The codebase that couldn't deploy now runs the business — web and mobile live on one shared backend, 13+ courses shipped, payments in four currencies. Fixed in place, not thrown away.

Next move

Inherited a broken codebase you can't ship?

Whether it's vibecoded, AI-generated, or just abandoned by the last team — we audit it and decide: fix in place, rebuild, or retire. $499.

Next case study
Taraki