How minhazur-rahman250/nextjs_-_golang-merge works
This is a NestJS course-learning backend, rather than the generic starter described by the README. Its main workflow is account registration/login, teacher course and lesson management, then student enrollment and progress tracking; administrators moderate users and courses and inspect audit logs. The graph uses sampled controller and service code plus SOURCE INDEX references. Persistence is represented as a database boundary; the excerpts show repository operations but do not identify a concrete database service.
Main entry points: course.controller.ts Course API · learning.controller.ts Learning API · admin.controller.ts Admin API · auth.controller.ts Authentication API
Components 18
Identity and access
- Authentication API
src/auth/auth.controller.ts - Authentication
src/auth/auth.service.ts - User accounts
src/user/user.service.ts - Role access
src/common/guards/roles.guards.ts
Course authoring
- Course API
src/teaching/course.controller.ts - Course authoring
src/teaching/course.service.ts - Courses and lessons
src/teaching/entities/course.entity.ts
Student learning
- Learning API
src/learning/learning.controller.ts - Enrollment and progress
src/learning/learning.service.ts - Enrollment records
src/learning/entities/enrollment.entity.ts - Lesson progress
src/learning/entities/progress.entity.ts
Administration
- Admin API
src/admin/admin.controller.ts - Moderation and audit
src/admin/admin.service.ts - Admin audit log
src/admin/entities/admin-log.entity.ts
Other components
- Student
- Teacher
- Administrator
- Relational database
Connections 17
- Student → Authentication API: register or log in
src/auth/auth.controller.ts - Teacher → Authentication API: register or log in
src/auth/auth.controller.ts - Authentication API → Authentication: dispatches
src/auth/auth.controller.ts - Authentication → User accounts: creates or looks up
src/auth/auth.service.ts - User accounts → Relational database: reads and writes
src/user/user.service.ts - Teacher → Course API: manages courses
src/teaching/course.controller.ts - Course API → Course authoring: dispatches
src/teaching/course.controller.ts - Course authoring → Relational database: reads and writes
src/teaching/course.service.ts - Student → Learning API: enrolls and tracks
src/learning/learning.controller.ts - Learning API → Enrollment and progress: dispatches
src/learning/learning.controller.ts - Enrollment and progress → Relational database: reads and writes
src/learning/learning.service.ts - Administrator → Admin API: moderates
src/admin/admin.controller.ts - Admin API → Moderation and audit: dispatches
src/admin/admin.controller.ts - Moderation and audit → Relational database: reads and writes
src/admin/admin.service.ts - Course API → Role access: guards teacher routes
src/teaching/course.controller.ts - Learning API → Role access: guards student routes
src/learning/learning.controller.ts - Admin API → Role access: guards admin routes
src/admin/admin.controller.ts