How guillermoscript/lms-front works
LMS Platform is a multi-tenant learning and commerce product for schools and course creators. Its primary flow is educators creating courses and selling access, followed by students enrolling, learning, completing assessments, and earning certificates. Separate branches cover tenant administration and platform billing, community and gamification, creator tools, and an MCP-based AI tutor. The graph combines sampled call relationships with capabilities and flows explicitly described in the README; unsampled implementation details are not assumed.
Main entry points: route.ts Checkout · admin/page.tsx School administration · index.ts MCP server · courses/page.tsx Course catalog
Components 22
Learning
- Course authoring
app/[locale]/dashboard/teacher/courses/[courseId]/page.tsx - Course catalog
app/[locale]/(public)/courses/page.tsx - Enrollment
lib/services/enrollment-service.ts - Course delivery
app/[locale]/dashboard/student/courses/[courseId]/lessons/[lessonId]/page.tsx - Exams and exercises
app/[locale]/dashboard/student/courses/[courseId]/exams/[examId]/page.tsx - Certificates
app/api/certificates/issue/route.ts
Commerce
- Checkout
app/api/payments/checkout/route.ts - Payment providers
lib/payments/index.ts - Payment webhooks
app/api/stripe/webhook/route.ts - Billing dispatch
lib/payments/webhook-dispatch.ts - School billing
lib/billing/platform-billing.ts
Schools and operations
- School administration
app/[locale]/dashboard/admin/page.tsx - Tenant context
lib/supabase/tenant.ts
Engagement and creation
- Community spaces
components/community/community-feed.tsx - Creator tools
components/admin/landing-page/landing-pages-client.tsx - Product analytics
lib/analytics/server.ts
AI tutor
- MCP server
mcp-server/index.ts - Practice tools
mcp-server/src/tools/practice.ts - Analytics tools
mcp-server/src/tools/analytics.ts
Other components
- Educator
- Student
- Supabase
Connections 23
- Educator → Course authoring: creates courses
README.md - Course authoring → Course catalog: publishes courses
- Student → Course catalog: browses courses
README.md - Course catalog → Checkout: starts purchase
- Student → Checkout: buys access
README.md - Checkout → Payment providers: selects provider
lib/payments/index.ts - Checkout → Supabase: reads session
app/api/payments/checkout/route.ts - Payment webhooks → Billing dispatch: dispatches events
app/api/stripe/webhook/route.ts - Billing dispatch → Product analytics: tracks events
lib/payments/webhook-dispatch.ts - Student → Enrollment: enrolls
README.md - Enrollment → Course delivery: grants access
- Student → Course delivery: learns
README.md - Course delivery → Exams and exercises: takes assessments
README.md - Exams and exercises → Certificates: earns certificates
- Educator → School administration: manages school
README.md - School administration → School billing: manages plan
README.md - Tenant context → Supabase: resolves tenant
lib/supabase/tenant.ts - School administration → Creator tools: builds landing pages
README.md - Student → Community spaces: participates
README.md - Student → MCP server: uses AI tutor
README.md - MCP server → Practice tools: registers tools
mcp-server/index.ts - MCP server → Analytics tools: registers tools
mcp-server/index.ts - Payment webhooks → Product analytics: tracks payments
app/api/stripe/webhook/route.ts