Case study

CardDeckr

E-commerce meets SaaS, built from scratch.

A full-stack trading card platform with a product shop, Stripe checkout, subscription billing, admin dashboard, and a 66-table PostgreSQL architecture. Engineered for scale from day one.

Screenshot of CardDeckr e-commerce platform
Overview

The brief

CardDeckr needed a platform that could sell trading card products, manage subscription tiers, and give administrators full control over inventory, orders, and customer accounts, all from a single codebase.

Fernside Studio designed and built the entire system: a storefront with Stripe checkout, a subscription billing engine, an admin dashboard, and a PostgreSQL database spanning 66 tables, all backed by over 6,900 automated tests.

66
Database tables
6,900+
Automated tests
197
API endpoints
22
Card games supported
Problem

The challenge

Building a commerce platform that handles both one-off product sales and recurring subscriptions is architecturally complex. CardDeckr needed to support multiple revenue models without bolting separate systems together:

  • Product shop with inventory management, variants, and Stripe checkout
  • Subscription billing with tiered plans, upgrades, and cancellations via Stripe Billing
  • Admin dashboard for managing products, orders, customers, and platform settings
  • Database architecture that scales across 22 card games without duplicating schemas
  • Comprehensive test coverage to protect payment flows and data integrity
  • Customer portal for managing subscriptions, order history, and account settings
Solution

What we built

Fernside Studio engineered CardDeckr as a unified platform where one codebase handles the storefront, subscriptions, and administration with a shared PostgreSQL database.

01

Product shop & checkout

A browsable storefront with product listings, search, filtering, and a Stripe-powered checkout flow handling one-off purchases with automatic inventory updates.

02

Subscription billing

Stripe Billing integration with tiered subscription plans, automatic renewals, upgrade/downgrade flows, and a customer portal for self-service management.

03

Admin dashboard

A full administration interface for managing products, processing orders, viewing customer accounts, and configuring platform settings. No direct database access needed.

04

Database architecture

A 66-table PostgreSQL schema designed in Supabase, supporting products, orders, subscriptions, user accounts, and game-specific data across 22 card games.

05

Test suite

Over 6,900 automated tests covering API endpoints, payment flows, subscription lifecycle, and data integrity, so every deployment is safe to ship.

Outcome

The results

CardDeckr launched as a production-ready platform with the architecture and test coverage to support ongoing feature development confidently.

66
Database tables
6,900+
Tests passing
197
API endpoints
22
Card games
  • Payments from day one and growing ever since
  • Unified commerce platform handling both one-off sales and recurring subscriptions
  • Stripe integration covering checkout, billing, customer portals, and webhook handling
  • Admin dashboard providing full operational control without developer intervention
  • 66-table database architecture designed for multi-game scalability
  • Comprehensive test suite protecting payment flows and data integrity across deployments
  • Subscription lifecycle management including upgrades, downgrades, and cancellations
Stack

Technology used

Astro TypeScript Tailwind CSS Supabase PostgreSQL Stripe Checkout Stripe Billing Stripe Webhooks Vitest

"CardDeckr is the largest custom build in our portfolio. 66 database tables, 197 API endpoints, and 6,900+ tests backing a platform that handles products, subscriptions, and administration from a single codebase."

Project summary
Fernside Studio

Need a platform this ambitious?

Whether you're building an e-commerce store, a SaaS product, or a hybrid of both, we design, build, and test it from scratch.

Say hello

Quick intro