Skip to content

Integrate Mindbody app into Next.js migration#4

Merged
vespo92 merged 1 commit into
masterfrom
claude/mindbody-nextjs-integration-018YjVHFpg5m3vxbvjBjQQye
Nov 22, 2025
Merged

Integrate Mindbody app into Next.js migration#4
vespo92 merged 1 commit into
masterfrom
claude/mindbody-nextjs-integration-018YjVHFpg5m3vxbvjBjQQye

Conversation

@vespo92
Copy link
Copy Markdown
Owner

@vespo92 vespo92 commented Nov 22, 2025

Transform the MCP server into a complete Next.js 14+ application with:

  • Prisma schema with 30+ models and proper foreign key relationships
  • Unified MindbodyService class with 50+ strongly-typed methods
  • tRPC routers for type-safe API access (site, staff, client, class, appointment, enrollment, sales)
  • React Query hooks for all data fetching operations
  • Data sync layer between Mindbody API and local PostgreSQL database
  • Example pages: Dashboard, Clients, Classes, Staff with full CRUD operations
  • Complete TypeScript type definitions for all Mindbody entities

Architecture:

  • /prisma/schema.prisma - Database models with relationships
  • /src/lib/mindbody/ - Core service layer (client, service, types)
  • /src/lib/sync/ - Background sync service
  • /src/server/routers/ - tRPC routers by domain
  • /src/hooks/useMindbody.ts - React hooks
  • /src/app/ - Next.js App Router pages

Pull Request

Description

Brief description of what this PR does.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Changes Made

Testing

  • Tested locally with bun run test:tool
  • Tested with Claude Desktop
  • Added/updated tests as needed
  • All tests passing

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Add screenshots to help explain your changes.

Additional Notes

Add any additional notes or context here.

Transform the MCP server into a complete Next.js 14+ application with:

- Prisma schema with 30+ models and proper foreign key relationships
- Unified MindbodyService class with 50+ strongly-typed methods
- tRPC routers for type-safe API access (site, staff, client, class, appointment, enrollment, sales)
- React Query hooks for all data fetching operations
- Data sync layer between Mindbody API and local PostgreSQL database
- Example pages: Dashboard, Clients, Classes, Staff with full CRUD operations
- Complete TypeScript type definitions for all Mindbody entities

Architecture:
- /prisma/schema.prisma - Database models with relationships
- /src/lib/mindbody/ - Core service layer (client, service, types)
- /src/lib/sync/ - Background sync service
- /src/server/routers/ - tRPC routers by domain
- /src/hooks/useMindbody.ts - React hooks
- /src/app/ - Next.js App Router pages
@vespo92 vespo92 merged commit 0e64cfd into master Nov 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants