How hafez-mostafa/sprachlern_app works
This is a NestJS backend for a language-learning application, despite the generic Nest starter README. The learner-facing flow is a client request to public content or child-progress endpoints, through controllers and domain services, into PostgreSQL; guardians authenticate separately, while administrators manage learning content behind an admin JWT. Content administration spans concepts and translations, words and media, exercises, questions, and tasks. The source excerpts and index establish these service calls and storage integrations; other feature relationships are omitted where their wiring was not shown.
Main entry points: media.service.ts Media service · concepts.service.ts Concepts & translations · words.service.ts Words & audio · concepts.controller.ts Content controllers
Components 25
Identity & Access
- Authentication
src/auth/auth.service.ts - Admin accounts
src/admins/admins.service.ts - Auth controller
src/auth/auth.controller.ts - Admin controller
src/admins/admins.controller.ts
Learner Accounts & Progress
- Guardian accounts
src/guardians/guardians.service.ts - Child profiles
src/child-profiles/child-profiles.service.ts - Learning progress
src/learning-progress/learning-progress.service.ts - Guardian controller
src/guardians/guardians.controller.ts - Child controllers
src/child-profiles/child-profiles.controller.ts - Progress controllers
src/learning-progress/child-progress.controller.ts
Learning Content
- Concepts & translations
src/concepts/concepts.service.ts - Words & audio
src/words/words.service.ts - Exercises
src/exercises/exercises.service.ts - Question pool
src/question-pool/question-pool.service.ts - Tasks & assignments
src/tasks/tasks.service.ts - Reference lookups
src/lookups/lookups.service.ts - Content controllers
src/concepts/concepts.controller.ts - Word controller
src/words/words.controller.ts - Exercise controller
src/exercises/exercises.controller.ts - Question controller
src/question-pool/question-pool.controller.ts - Task controllers
src/tasks/task-detail.controller.ts
Storage & Media
- Media service
src/media/media.service.ts - Cloudinary adapter
src/cloudinary/cloudinary.service.ts - PostgreSQL
Other components
- App client
Connections 33
- App client → Guardian controller: requests
src/guardians/guardians.controller.ts - App client → Child controllers: requests
src/child-profiles/child-profiles.controller.ts - App client → Progress controllers: submits progress
- App client → Content controllers: requests
src/concepts/concepts.controller.ts - App client → Word controller: requests
src/words/words.controller.ts - App client → Exercise controller: requests
src/exercises/exercises.controller.ts - App client → Auth controller: authenticates
src/auth/auth.controller.ts - Guardian controller → Guardian accounts: calls
src/guardians/guardians.controller.ts - Child controllers → Child profiles: calls
src/child-profiles/child-profiles.controller.ts - Progress controllers → Learning progress: calls
src/learning-progress/child-progress.controller.ts - Auth controller → Authentication: calls
src/auth/auth.controller.ts - Admin controller → Admin accounts: calls
src/admins/admins.controller.ts - Content controllers → Concepts & translations: calls
src/concepts/concepts.controller.ts - Content controllers → Media service: passes uploads
src/concepts/concepts.controller.ts - Word controller → Words & audio: calls
src/words/words.controller.ts - Word controller → Media service: passes uploads
src/words/words.controller.ts - Exercise controller → Exercises: calls
src/exercises/exercises.controller.ts - Question controller → Question pool: calls
src/question-pool/question-pool.controller.ts - Task controllers → Tasks & assignments: calls
src/tasks/task-detail.controller.ts - Guardian accounts → PostgreSQL: reads/writes
src/guardians/guardians.service.ts - Child profiles → PostgreSQL: reads/writes
src/child-profiles/child-profiles.service.ts - Learning progress → PostgreSQL: reads/writes
src/learning-progress/learning-progress.service.ts - Authentication → PostgreSQL: looks up accounts
src/auth/auth.service.ts - Concepts & translations → PostgreSQL: reads/writes
src/concepts/concepts.service.ts - Concepts & translations → Media service: uploads/deletes
src/concepts/concepts.service.ts - Words & audio → PostgreSQL: reads/writes
src/words/words.service.ts - Words & audio → Media service: uploads/deletes
src/words/words.service.ts - Exercises → PostgreSQL: reads/writes
src/exercises/exercises.service.ts - Question pool → PostgreSQL: reads/writes
src/question-pool/question-pool.service.ts - Tasks & assignments → PostgreSQL: reads/writes
src/tasks/tasks.service.ts - Reference lookups → PostgreSQL: reads
src/lookups/lookups.service.ts - Media service → Cloudinary adapter: uploads/deletes
src/media/media.service.ts - Cloudinary adapter → PostgreSQL