How rajiv-rago/lms works
Kantigo is a full-stack learning management system for teachers, students, and administrators. Its central workflow is that a teacher creates and publishes a course, builds modules and lessons, and adds assignments; students discover or enroll in courses, learn from lesson content, submit work or take quizzes, and track results. AI adds syllabus and lesson generation, learning resources, and an in-course tutor. The graph includes documented product capabilities and sampled internal layers; some page-to-API wiring and unsampled subsystems are shown only where the README supports the relationship.
Main entry points: courses/route.ts Course management · enroll/route.ts Enrollment · notifications/route.ts Notifications · page.tsx Sign in and register
Components 23
Access and discovery
- Sign in and register
app/(auth)/login/page.tsx - Authentication
app/api/auth/[...nextauth]/route.ts - Course catalog
app/(public)/explore/page.tsx
Course learning
- Course management
app/api/courses/route.ts - Course records
lib/models/Course.ts - Course lessons
app/(dashboard)/courses/[id]/modules/[moduleId]/lessons/[lessonId]/page.tsx - Enrollment
app/api/courses/[id]/enroll/route.ts - Enrollment records
lib/models/Enrollment.ts
Assessment
- Assignments and quizzes
app/api/courses/[id]/assignments/route.ts - Submissions
app/api/courses/[id]/assignments/[assignmentId]/submissions/route.ts - Gradebook
app/(dashboard)/courses/[id]/gradebook/page.tsx
AI learning tools
- AI course generation
app/api/courses/ai/syllabus/route.ts - AI content generation
app/api/ai/generate/route.ts - AI tutor chat
app/api/ai/chat/route.ts - AI provider services
lib/ai/index.ts - Web research
lib/ai/services/webResearch.ts
Platform services
- Notifications
app/api/notifications/route.ts - Notification records
lib/models/Notification.ts
Other components
- Learner
- Teacher
- Administrator
- AI providers
- MongoDB
Connections 28
- Learner → Sign in and register: signs in
README.md - Teacher → Sign in and register: signs in
README.md - Sign in and register → Authentication: authenticates
README.md - Learner → Course catalog: explores courses
README.md - Course catalog → Course management: lists courses
README.md - Teacher → Course management: creates courses
README.md - Course management → Course records: reads and writes
app/api/courses/route.ts - Course management → MongoDB: connects to
app/api/courses/route.ts - Learner → Enrollment: enrolls
README.md - Enrollment → Enrollment records: records enrollment
- Enrollment → MongoDB: connects to
- Learner → Course lessons: learns from lessons
README.md - Teacher → Assignments and quizzes: creates assignments
README.md - Learner → Assignments and quizzes: takes quizzes
README.md - Learner → Submissions: submits work
README.md - Submissions → Gradebook: tracks scores
README.md - Teacher → Gradebook: reviews grades
README.md - Teacher → AI course generation: generates syllabus
README.md - Teacher → AI content generation: generates lessons
README.md - Learner → AI tutor chat: asks tutor
README.md - AI content generation → AI provider services: selects provider
app/api/ai/generate/route.ts - AI tutor chat → AI provider services: calls tutor
app/api/ai/chat/route.ts - AI provider services → AI providers: generates responses
lib/ai/index.ts - AI course generation → Web research: adds course references
README.md - Learner → Notifications: views notifications
README.md - Notifications → Notification records: reads and updates
app/api/notifications/route.ts - Notifications → MongoDB: connects to
app/api/notifications/route.ts - Administrator → Course management: moderates courses
README.md