How adhnan23/lms-skilljet works
This is a Next.js learning-management application for students and teachers. Students browse and search published courses, enroll through checkout, view chapters and track completion; teachers create courses, manage chapters and attachments, publish content, and review analytics. The graph groups the main user journeys with the API, persistence, and payment layers. Some routes and capabilities are represented from the file tree and SOURCE INDEX rather than inspected implementations, so their internal relationships are omitted where evidence is unavailable.
Main entry points: db.ts Prisma database · search/page.tsx Course search · [chapterId]/page.tsx Chapter learning · [courseId]/page.tsx Course editor
Components 22
Identity and navigation
- Sign in and sign up
app/(auth)/(routes) - Dashboard navigation
app/(dashboard)/_components/sidebar-routes.tsx
Course discovery and learning
- Course search
app/(dashboard)/(routes)/search/page.tsx - Course listings
components/courses-list.tsx - Course overview
app/(course)/courses/[courseId]/page.tsx - Chapter learning
app/(course)/courses/[courseId]/chapters/[chapterId]/page.tsx - Video player
app/(course)/courses/[courseId]/chapters/[chapterId]/_components/video-player.tsx
Teacher authoring
- Course editor
app/(dashboard)/(routes)/teacher/courses/[courseId]/page.tsx - Course setup forms
app/(dashboard)/(routes)/teacher/courses/[courseId]/_components - Chapter editor
app/(dashboard)/(routes)/teacher/courses/[courseId]/chapters/[chapterId]/_components - Teacher analytics
app/(dashboard)/(routes)/teacher/analytics/page.tsx
Enrollment and progress
- Checkout endpoint
app/api/courses/[courseId]/checkout/route.ts - Stripe payments
lib/stripe.ts - Payment webhook
app/api/webhook/route.ts - Progress lookup
actions/get-progress.tsx
API and persistence
- Course API
app/api/courses/route.ts - Chapter and progress APIs
app/api/courses/[courseId]/chapters - Attachment API
app/api/courses/[courseId]/attachments - Prisma database
lib/db.ts - UploadThing integration
lib/uploadthing.ts
Other components
- Learner
- Teacher
Connections 25
- Learner → Sign in and sign up: signs in
- Teacher → Sign in and sign up: signs in
- Learner → Course search: browses courses
- Teacher → Course editor: edits course
- Course search → Prisma database: loads categories
app/(dashboard)/(routes)/search/page.tsx - Course search → Course listings: renders results
app/(dashboard)/(routes)/search/page.tsx - Course search → Course listings: loads courses
app/(dashboard)/(routes)/search/page.tsx - Course listings → Course overview: links courses
- Course overview → Chapter learning: opens chapter
- Chapter learning → Video player: renders player
app/(course)/courses/[courseId]/chapters/[chapterId]/page.tsx - Chapter learning → Progress lookup: loads chapter data
- Chapter learning → Checkout endpoint: starts enrollment
- Course editor → Prisma database: loads course data
app/(dashboard)/(routes)/teacher/courses/[courseId]/page.tsx - Course editor → Course setup forms: renders forms
app/(dashboard)/(routes)/teacher/courses/[courseId]/page.tsx - Course setup forms → Course API: updates course
- Chapter editor → Chapter and progress APIs: manages chapters
- Course API → Prisma database: creates course
app/api/courses/route.ts - Chapter and progress APIs → Prisma database: accesses records
app/api/courses/[courseId]/chapters/[chapterId]/route.ts - Attachment API → Prisma database: stores attachments
app/api/courses/[courseId]/attachments/route.ts - Checkout endpoint → Prisma database: checks purchase
app/api/courses/[courseId]/checkout/route.ts - Checkout endpoint → Stripe payments: creates session
app/api/courses/[courseId]/checkout/route.ts - Stripe payments → Payment webhook: sends event
app/api/webhook/route.ts - Payment webhook → Prisma database: records purchase
app/api/webhook/route.ts - Progress lookup → Prisma database: reads progress
- Course setup forms → UploadThing integration: uploads assets