Skip to main content
Back to Projects
Case Study

MusicBloom

A full-stack music player that turns listening into garden progression with Melody Points, quests, and achievements.

Full-Stack
  • React
  • TypeScript
  • Vite
  • FastAPI
  • Python
  • SQLAlchemy
  • Alembic
  • Docker
  • Azure Pipelines
Status
Single demo user; quest and achievement pages are partly scaffold-level; CI validates and publishes artifacts but does not deploy production.

The challenge

Music players rarely connect listening behavior to a durable progression system that still works without third-party credentials.

My approach

Split a typed FastAPI domain (catalog, sessions, progression, favorites, optional Spotify/Azure clients) from a React visual player, and default to demo mode so the full loop runs locally without external APIs.

The solution

A full-stack app where a React visual player talks to FastAPI for catalog, sessions, queue, Melody Points, quests, and achievements, with demo mode covering the product without Spotify or Azure DevOps secrets.

Key features

  • Visual music player with playback controls, queue management, and listening-event sync.
  • Garden progression with Melody Points, quests, achievements, decorations, and BloomBud.
  • BloomMix mood-based five-track previews planted into a server-backed queue; Recent Blooms and Favorites from persisted listening events.
  • Demo mode for catalog, player, garden, history, favorites, and Dev Garden sample data without external credentials.

Technical decisions

  • React, TypeScript, Vite, React Router, and TanStack Query on the frontend.
  • Python, FastAPI, Pydantic, and SQLAlchemy 2 with Alembic migrations on the backend.
  • SQLite by default with PostgreSQL-compatible persistence; Spotify and Azure DevOps secrets stay server-side.

Architecture

  1. React visual player

    Playback UI, queue, garden views, and a typed API client shared with TanStack Query.

    • React
    • TypeScript
    • Vite
    • TanStack Query
  2. FastAPI REST API

    Versioned /api/v1 routes for demo catalog, player session, queue, and progression systems.

    • Python
    • FastAPI
    • Pydantic
  3. Persistence

    SQLAlchemy repositories with Alembic migrations; SQLite by default, PostgreSQL-compatible.

    • SQLAlchemy
    • Alembic
    • SQLite
  4. Quality & delivery

    pytest (100% coverage gate on src/musicbloom), Vitest, Ruff, mypy, ESLint, Azure Pipelines, Docker, and Compose demo stack.

    • pytest
    • Vitest
    • Docker
    • Azure Pipelines

Outcome

Delivers player, garden progression, history, favorites, OpenAPI docs, Docker Compose demo stack, and Azure Pipelines CI for lint, typecheck, tests, builds, and artifacts.

Lessons learned

  • Demo mode should cover the full product loop without requiring Spotify or Azure DevOps credentials.
  • Keep OAuth and DevOps tokens server-side so they are never exposed to the browser.
  • Enforce backend coverage and CI quality gates early so demo-friendly apps stay production-minded.