Wellness Platform
A comprehensive wellness web application for a UK startup featuring blogs powered by Strapi CMS, podcasts, webinars with Mux video streaming, and Stripe integrations for subscriptions and store purchases.
Built a comprehensive wellness platform for a UK startup that needed a scalable solution for content delivery, subscriptions, and e-commerce. The platform combines multiple content types (blogs, podcasts, webinars) with subscription management and a store, requiring seamless integration of various third-party services.
FiftyFirst Wellness provides a complete wellness platform that seamlessly combines content delivery, subscription management, and e-commerce. The migration to Drizzle ORM enabled reliable database operations with Turso, while Strapi integration offers scalable content management. The platform is currently in testing phase with core features operational.
The platform follows a modern full-stack architecture with NestJS backend, React frontend, and multiple integrated services. Turso DB (LibSQL) provides distributed database capabilities, Strapi serves as the headless CMS for blogs, Mux handles video streaming, and Stripe manages all payment operations.
Users browse content (blogs from Strapi, podcasts, webinars from Mux) → subscribe or purchase via Stripe → access granted based on subscription/product ownership → content delivered with proper access control. Admin manages content through Strapi CMS and product catalog through the platform.
Modular architecture with dependency injection, perfect for managing multiple integrated services and complex business logic
RESTful API design for predictable integration with Strapi CMS, Mux, and Stripe services
Modern React 19 with hooks and context for managing complex state across content types and user sessions
Type safety essential for payment processing, subscription management, and content type handling
Rapid development and consistent styling for a content-rich wellness platform
Distributed SQLite database providing edge-computing capabilities and low latency for global users
Native support for Turso DB with type-safe queries and migrations, solving Prisma compatibility issues
Headless CMS providing flexible content management for blogs with customizable content types and media handling
Professional video streaming platform handling upload, processing, and adaptive playback for webinars
Comprehensive payment processing for both subscription billing and one-time store purchases with webhook support
Seamless frontend deployment with automatic scaling and CI/CD integration
Backend hosting with easy database integration and environment management
Media storage and optimization for product images and content assets
Email service for transactional emails including order confirmations and subscription notifications
System architecture showing the integration between NestJS backend, React frontend, Strapi CMS, Mux video streaming, Stripe payments, and Turso database. The diagram illustrates the flow of content delivery, subscription management, and e-commerce operations.

Complete system architecture and data flow diagram
User requests flow through React frontend → NestJS API processes business logic → Content fetched from Strapi CMS (blogs) or Mux (webinars) → Payment processing via Stripe → Access control verified against Turso database → Content delivered based on subscription/product ownership.
The database uses Turso (LibSQL) for distributed edge computing with Drizzle ORM. Schema supports users, subscriptions, products, orders, payments, and content access tracking.

Schema includes tables for users, subscriptions, subscription plans, products (store/programme/podcast), orders, payments, reviews, bookmarks, and delivery addresses. Relationships support complex access control and subscription management.
User accounts with authentication, profiles, and role management
Subscription plan definitions with pricing, duration, and access levels
Active user subscriptions linked to plans with start/end dates and status
Unified product catalog supporting store items, programmes, and podcasts
Order records for store purchases with delivery address and status tracking
Payment records for both subscriptions and store purchases with provider integration
Product reviews with moderation status and rating system
User bookmarks for saved content and products
Building a comprehensive wellness platform required solving complex integration challenges, database compatibility issues, and creating scalable content management solutions.
Faced significant issues integrating Prisma ORM with Turso DB (LibSQL), as Prisma lacked native support for LibSQL driver, causing connection and query failures.
Needed a blogging system that could scale with content growth, support rich media, and provide a flexible content management experience without building a custom CMS.
Implementing reliable video streaming for webinars with proper upload, processing, playback, and access control.
Creating a payment system that handles both recurring subscriptions and one-time store purchases with proper webhook handling and order management.
These challenges required deep understanding of database systems, content management architectures, video streaming, and payment processing. The solutions implemented provide a robust, scalable foundation for a comprehensive wellness platform.