Client case

From AppSheet to Production: How Claude Code Built a Full Enterprise Platform

Published Updated Florian Smeyers11 min read
AgentsEnterpriseAutomation
On this page

Illustration of order management, PDF review and packing labels with invented demo data, not a screenshot of the client's system.

Cover illustration with invented demo data, not a screenshot of the client's system. All visuals below are constructed illustrations of the workflows described, not captures of the application, repository or a real development session.

In a previous article, we wrote about connecting a German textile manufacturer's systems with MCP — giving their team a single AI-powered interface to query across ERP exports, spreadsheets, and email. That project demonstrated how MCP can unify fragmented data sources without centralizing everything into one monolith.

This is about what came next.

The same manufacturer had been running their order management and label printing workflow on Google AppSheet for several years. AppSheet is a capable no-code platform for straightforward CRUD applications, but it started hitting hard limits as the business grew.

Where AppSheet Fell Short

The core challenge was domain complexity. This company manages production across external factories and suppliers, coordinating orders that each contain multiple production lots, each broken down across 32 clothing size columns — from size 23 through size 122. AppSheet could handle basic data entry, but three requirements pushed it past its limits.

Deterministic PDF import. Suppliers send order confirmations as PDFs with specific positional layouts. The team was manually retyping quantities from these PDFs into the system — hundreds of cells per order, across dozens of sizes. This was slow, error-prone, and expensive.

Complex label generation. Each lot needs barcodes and packing labels with precise formatting, auto-hidden empty size columns, and support for variable lot structures. AppSheet's printing capabilities could not handle this.

Role-based multi-tenant access. Different supplier companies needed access to their own orders only, with admin users having full visibility. AppSheet's permission model was too coarse for this requirement.

Illustration of a legacy AppSheet-style order and lot form with a wide size grid, using invented demo data, not a screenshot of the client's system.

Legacy order and lot workflow. Illustration with invented demo data, not a screenshot of the client's system.

A SaaS product might have addressed some of these needs, but the size-column structure is highly specific to this manufacturer's workflow. No off-the-shelf solution maps 32 size columns cleanly.

Why Claude Code, Not Another No-Code Tool

The requirements were too domain-specific for another no-code platform, but building from scratch in the traditional way — scoping, design, development, testing — would have been prohibitively expensive for a company of this size.

Claude Code changed the economics. Instead of hiring a development team for several months, we could work as a small team — one developer with Claude Code functioning as a senior engineering partner that understands the full codebase context.

The key difference from using AI for code snippets or autocomplete is codebase-level reasoning. Claude Code reads the entire project — schema, actions, components, tests, deployment config — and makes changes that are consistent with the existing architecture. When we describe a feature in natural language, the implementation respects the patterns already established in the codebase.

There is a growing category of AI automation that focuses on stitching together pre-built workflow blocks — tools like N8N and Make. These are useful for standard integrations. But when the domain is specific enough that no pre-built block exists — 32 clothing sizes, positional PDF extraction, SCADA tag management — you need someone who can build the block. That is what we do.

Architecture

We chose a stack optimized for simplicity and operational cost:

┌──────────────────────────────────────────┐
│           Next.js 15 (App Router)         │
│   React 19 + Tailwind CSS + Heroicons     │
├──────────────────────────────────────────┤
│         Server Actions (11 modules)       │
│    Auth guards, activity logging, CRUD    │
├──────────────────────────────────────────┤
│      NextAuth v5 (JWT + Credentials)      │
│    Role-based: admin | user + companyId   │
├──────────────────────────────────────────┤
│     PostgreSQL (Supabase, eu-central-1)   │
│          Drizzle ORM, SSL required        │
├──────────────────────────────────────────┤
│       Vercel (Frankfurt, fra1 region)     │
│     GitHub Actions CI/CD pipeline         │
└──────────────────────────────────────────┘

Illustration of the replacement order overview with statuses, lot counts and company scope, using invented demo data, not a screenshot of the client's system.

Order overview and company scope. Illustration with invented demo data, not a screenshot of the client's system.

Why PostgreSQL via Supabase. The application needs reliable relational storage with minimal operational overhead. Supabase provides a managed PostgreSQL instance in eu-central-1 with automatic backups, connection pooling, and a dashboard for direct database access. Drizzle ORM handles the schema and migrations, and the SSL-required connection keeps data encrypted in transit. For a company of this size, a managed database eliminates the need for a dedicated DBA or database server maintenance.

Why Vercel. The platform deploys directly from GitHub with zero configuration for Next.js. Combined with GitHub Actions for CI (lint, typecheck, build, dependency audit, tests), the deployment pipeline is fully automated. The Frankfurt region keeps latency low for European users.

Why Server Actions over REST. All data access flows through 11 server action modules — no REST API layer needed. Each action starts by calling requireAuth() or requireAdmin(), keeping authorization logic co-located with the data access code.

The AI-Powered Features

"AI-powered" is an overloaded term. In this project, the features that matter most are not powered by AI at runtime — they are powered by deterministic code that was written with the help of AI.

Deterministic PDF Import

This is the headline feature. The PDF extraction engine is ~440 lines of TypeScript that uses pdfjs-dist to extract text items with their x/y coordinates, groups them into rows by vertical position, identifies the header row containing size columns, and maps each data cell to the correct size column based on horizontal position.

  1. Extract text items with coordinates from each PDF page
  2. Group items by y-position (3px tolerance) to form rows
  3. Find the header row by detecting 3+ measurement values (23-122)
  4. Build a column map from header x-positions
  5. For each data row, match numeric cells to columns by x-proximity
  6. Merge results across pages, normalizing lot names and totals

The result handles multi-page PDFs with variable lot counts, and the same PDF always produces the same result.

Illustration of PDF import review with an editable 32-size-column table and left and right alignment controls, using invented demo data, not a screenshot of the client's system.

PDF import review with all 32 size columns. Illustration with invented demo data, not a screenshot of the client's system.

After extraction, the user reviews the data in an editable table with all 32 size columns, can shift quantities left or right across size columns (to correct column alignment from extraction), and confirms before import. The system validates extracted stock quantities against computed values and flags any mismatches.

Illustration of a PDF quantity mismatch between extracted stock of 12 and a computed size total of 10, using invented demo data, not a screenshot of the client's system.

Validation warning and affected totals. Illustration with invented demo data, not a screenshot of the client's system.

Barcode and Packing Labels

Each lot gets a unique barcode. Packing lists are generated with a layout that automatically hides size columns with zero quantities — since most orders only use a subset of the 32 possible sizes, this prevents printing pages full of empty columns.

Illustration of a packing list showing three non-empty size columns and omitting 29 empty columns, using invented demo data, not a screenshot of the client's system.

Packing-list preview with empty size columns omitted. Illustration with invented demo data, not a screenshot of the client's system.

The packing algorithm is overridable: administrators can manually adjust the generated packing layout for special cases, and these overrides persist across recalculations.

Illustration of two lot-label layouts with decorative, non-scannable bars and no encoded payload, using invented demo data, not a screenshot of the client's system.

Label-layout preview with non-scannable placeholder bars. Illustration with invented demo data, not a screenshot of the client's system.

CSV Sync from Google Sheets

The manufacturer still uses Google Sheets for some data entry workflows. Rather than forcing a complete process change, we built a sync bridge. A sync action fetches three CSV exports from published Google Sheets using PapaParse for robust parsing, wraps the entire operation in a database transaction (clear and rebuild), and preserves company-to-order assignments across syncs. If anything fails, the transaction rolls back and the existing data is untouched. The action returns statistics: orders processed, lots created, produced lots synced.

This kind of pragmatic integration — bridging legacy workflows instead of replacing them overnight — is where custom platforms have a clear advantage over SaaS products. Not many off-the-shelf tools would support this specific sync pattern.

Activity Logging

Every significant action — order creation, lot modification, PDF import, user management — is logged with a fail-safe wrapper — if logging fails, it never breaks the main operation. Each log entry captures the user's identity, action type, entity reference, and details. Administrators can search and filter the full audit trail from the admin panel.

Illustration of an admin activity log with search, action and actor filters and invented audit entries, not a screenshot of the client's system.

Searchable admin activity log. Illustration with invented demo data, not a screenshot of the client's system.

The Build Process — What We Learned

This is the section that matters most if you are considering using Claude Code for a similar project.

The CLAUDE.md Pattern

Every project we build with Claude Code starts with a CLAUDE.md file in the repository root. This file is the AI's briefing document — it describes the project structure, architecture decisions, naming conventions, and constraints. Claude Code reads it automatically and uses it as context for every interaction.

For this project, the CLAUDE.md covered:

  • Tech stack and versions — Next.js 15, React 19, PostgreSQL with Drizzle, NextAuth v5 beta
  • Database schema — core tables with their relationships and the 32 size columns
  • Server action patterns — auth guards, error handling, the convention of co-locating authorization with data access
  • Component structure — which components handle which responsibilities
  • Deployment — Vercel configuration, environment variables, CI/CD pipeline

Illustration of a CLAUDE.md project brief in a VS Code-style editor showing generic stack, schema and action conventions, not a screenshot of the client's system.

Constructed project brief in a VS Code-style editor. Illustration with invented demo content, not a screenshot of the client's system or repository.

What Claude Code Excels At

Schema-to-UI generation. Given a Drizzle schema with 32 size columns, Claude Code generates the corresponding form components, validation logic, and display tables correctly. Writing 32 form inputs with proper labels, validation, and state management by hand is tedious; Claude Code handles it in seconds.

Server action boilerplate. The pattern of requireAuth() → query → return result is consistent across all 11 action modules. Once the pattern was established in the first module, Claude Code replicated it faithfully across the rest, including proper error handling and TypeScript types.

Cross-file consistency. When we added a new field to the schema, Claude Code updated the schema file, the relevant server actions, the form components, and the display components in one pass. Keeping all these files in sync manually is where bugs typically hide.

Rapid iteration on feedback. The client provided feedback in Dutch. We could describe what needed to change in natural language, and Claude Code implemented it in minutes. A request like "the packing list should hide columns where all lots have zero for that size" went from description to working implementation in a single interaction.

Illustration of a scripted Claude Code feature request and implementation plan for hiding empty size columns, not a screenshot of the client's system or a recorded session.

Scripted feature-implementation example. Illustration with invented demo content, not a screenshot of the client's system or a recorded development session.

What Needs Human Judgment

Architecture decisions

Claude Code does not choose your stack. The decision to use PostgreSQL over SQLite, Server Actions over REST, or Vercel over a self-hosted VPS — these are engineering decisions that require understanding the operational context.

Domain logic validation

The PDF extraction logic works correctly, but verifying that the positional mapping produces the right results for every supplier's PDF format requires domain knowledge. Claude Code can write the code; a human needs to validate it against real documents.

UX flow design

Claude Code builds whatever UI you describe, but deciding the right user flow — import → review → edit → confirm → save — requires understanding how the end users actually work.

Deployment and security

Setting up the deployment pipeline, configuring environment variables, managing secrets, establishing dev/acc/prod environments — these operational concerns require deliberate human attention. Claude Code writes the CI workflow; a human verifies it is secure.

Edge cases in business logic

The packing algorithm needs to handle special cases — orders with unusually large quantities, lots that span non-contiguous size ranges, split shipments. These edge cases are difficult to specify in natural language because they often only surface when processing real production data. The initial implementation works for the common case; the edge cases require iterative refinement with actual users.

Development Timeline

The platform went from zero to production-ready in a fraction of the time a traditional development process would have required. The CLAUDE.md file, once established, made each subsequent feature faster to implement because Claude Code accumulated context about the project's conventions and constraints.

For recurring tasks, the SFLOW Runner could schedule automated operations for this client — syncing data, generating reports, or monitoring system health — extending the platform's value beyond what was built manually.

Takeaways for Business Owners

Velocity, not replacement. Claude Code did not replace engineering judgment. It eliminated the mechanical work — the boilerplate, the repetitive patterns, the cross-file consistency — so that we could focus on architecture, domain logic, and user experience.

When to use this approach. This works well when you have a clear problem, domain-specific requirements that no SaaS product addresses, and someone who can make architecture decisions and validate outputs. It does not work if you have no technical oversight at all.

Cost comparison. We are not claiming a measured time or cost saving against a like-for-like agency quote.

Want to discuss a project like this?

SFLOW helps companies implement practical AI solutions — from custom platforms to industrial integrations with your existing systems.

← All articles