Munz Cake: e-commerce, baking academy and cake configurator
I stood up a Medusa v2 headless shop with a custom 11-model LMS module for baking courses, then designed a modular Next.js 16 catalogue and cake configurator for 2026.
- Period
- Nov 2025 – Aug 2026
- My role
- Solo: commerce back end, custom module, storefronts
- Technologies
- 7
- Diagrams
- 1
- Reading time
- 2 min
Medusa commerceNext.jsReactTypeScriptSupabase / PostgresStripe / PayHereTailwind CSS
Summary
Gen 1 (4 days):
- The owner stood up a Medusa v2.11 headless commerce back end connected to Supabase Postgres, with a Next.js 15 storefront based on the Medusa starter, Stripe payments and Google login.
- Built a custom Medusa module
lmswith 11 data models (course, chapter, section, lesson, enrollment, progress, note, resource, quiz, quiz-question, quiz-attempt), a migration, a service, a workflow (create-course), Store API routes (/store/lms/courses,courses/[id],enrollments,enrollments/[id],progress,notes,quizzes,resources) and seed scripts (5 baking courses). - Added storefront LMS pages (
/[countryCode]/courses, course detail with curriculum, enrolment, check-mark progress). - Fixed Next 15 async-params and Medusa
query.graphrelation errors (doc 004).
Gen 2 (2026): a redesigned site, built as a modular Next.js 16 app:
- marketing (hero, story, three pillars, signature creations, atelier, academy teaser, journal, social proof, newsletter, shop teaser)
- a cake catalogue (search with Fuse.js, filter rail, sort, pagination, availability / delivery chips, country selector, quick view)
- a cake detail page (gallery, size selector, allergens, related)
- a configurator (tier builder, option groups, live price panel, quote request) and a custom cake designer with preview
- next-intl i18n (en / fr), dark mode (next-themes), URL state (nuqs), Zustand configurator store, Zod schemas, Radix / shadcn UI and framer-motion reveal animations
Tech Stack
| Part | Stack |
|---|---|
| Medusa back end | @medusajs/medusa, framework, cli, admin-sdk 2.11.3; MikroORM migrations; Jest integration tests; Supabase Postgres; SQL setup scripts (setup-lms-tables.sql, create_enrollment_table.sql, fix-progress-table.sql) |
| Storefront (Gen 1) | Next.js 15.3, React 19 RC, @medusajs/js-sdk 2.11.3, @medusajs/ui, Stripe (@stripe/stripe-js 8.2, react-stripe-js 5.3), Headless UI, Radix accordion, Tailwind + tailwindcss-radix, react-country-flag, next-sitemap, pg |
| Web app (Gen 2) | Next.js 16.3, React 19.2, next-intl 4.13, next-themes, nuqs 2.9, zustand 5, zod 4, react-hook-form 7.84 + resolvers, fuse.js 7.5, embla-carousel, framer-motion 13, Radix (accordion, dialog, label, navigation-menu, separator, slot, tabs, toast, visually-hidden), CVA / clsx / tailwind-merge, lucide |
Architecture
Diagram as text
flowchart LR C([Customer / student]) --> SF[Next.js storefront] SF -->|Medusa JS SDK| MED[Medusa v2 server:9000] MED --> CORE[Commerce modules: products, cart, orders, customers] MED --> LMS[Custom LMS module: models + service + workflow + store routes] CORE & LMS --> PG[(Supabase Postgres)] SF --> STRIPE[(Stripe)] SF --> GA[(Google OAuth)] ADMIN([Shop admin]) --> MADM[Medusa Admin] MADM --> MED
Gen 2 module layout: app/[locale] routes; modules/{cakes (catalogue, configurator, designer, detail, preview; lib: pricing, delivery, filter, search, schema, configurator-store, preview-mapping, viewer), marketing (home sections, page header, stub page), shared (layout: header, footer, announcement bar, language switcher, theme toggle; ui primitives; reveal; cake-art)}; messages/{en,fr}.json.
Data Model (LMS)
lms_course → lms_chapter / lms_section → lms_lesson; lms_enrollment (customer ↔ course), lms_user_progress (lesson completion), lms_note, lms_resource, lms_quiz → lms_quiz_question, lms_quiz_attempt.
Resume Bullets
- Extended Medusa v2 with a custom LMS module (11 models, service, workflow, store APIs, seeds) to sell cakes and baking courses on one platform with Stripe and Google login.
- Built a Next.js 16 cake configurator (tier builder, option pricing, quote requests, designer preview) with i18n, URL state and Zustand.
Related projects
Red Wings Travels: online visa-application platform
A production visa-agency platform: applicant wizard, group applications, three payment gateways and an admin console.
ReactTypeScriptTailwind CSSshadcn / Radix UI+2Logo Color Previewer: colour variations with a WCAG contrast check
A Next.js 16 tool that applies 100+ palettes to a logo, checks WCAG contrast live and exports favourite variations as a ZIP in the browser.
Next.jsReactTypeScriptTailwind CSSAI and LLM experiments
Experiments with LLM APIs: a Flask chat over several providers, speech-to-text and model tests, and a React and shadcn debugging sandbox.
PythonFastAPI / FlaskLLM integrationReact+1Want to discuss this project?
Happy to walk through the architecture, trade-offs or the code.