DeutschLernen/docs/architecture/backend-structure.md
Lasse Rune Hansen 76e8af4987 Add complete solution: documentation, frontend, and project files
- Add comprehensive documentation in docs/ (architecture, features, roadmap)
- Add german-app-frontend with Vite, TypeScript, ESLint configuration
- Add AGENTS.md and .gitignore

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 18:20:53 +02:00

61 lines
No EOL
2.5 KiB
Markdown

GermanApp/
├── Controllers/
│ ├── AuthController.cs -- User registration/login
│ ├── LessonsController.cs -- Lesson CRUD and retrieval
│ ├── QuizzesController.cs -- Quiz retrieval and submission
│ ├── StoryController.cs -- Story segment retrieval
│ ├── SpeechController.cs -- Vosk speech recognition
│ ├── TtsController.cs -- Coqui TTS audio generation
│ ├── VocabularyController.cs -- Vocabulary retrieval
│ └── UserProgressController.cs -- User progress tracking
├── Services/
│ ├── AuthService.cs
│ ├── LessonService.cs
│ ├── QuizService.cs
│ ├── StoryService.cs
│ ├── VoskService.cs -- Vosk integration
│ ├── TtsService.cs -- Coqui TTS integration
│ ├── MistralService.cs -- Mistral-Medium API calls
│ ├── VocabularyService.cs
│ └── UserProgressService.cs
├── Models/
│ ├── DTOs/ -- Data Transfer Objects
│ │ ├── LessonDto.cs
│ │ ├── QuizDto.cs
│ │ ├── StorySegmentDto.cs
│ │ ├── VocabularyDto.cs
│ │ └── UserProgressDto.cs
│ │
│ ├── Entities/ -- Database entities (mirroring schema)
│ │ ├── User.cs
│ │ ├── Lesson.cs
│ │ ├── Vocabulary.cs
│ │ ├── WordMetadata.cs
│ │ ├── WordForm.cs
│ │ ├── StorySegment.cs
│ │ ├── Quiz.cs
│ │ ├── Question.cs
│ │ ├── QuestionOption.cs
│ │ ├── UserProgress.cs
│ │ ├── QuizAttempt.cs
│ │ └── ...
│ │
│ └── Requests/ -- API request models
│ ├── SubmitQuizRequest.cs
│ ├── GenerateTtsRequest.cs
│ └── ...
├── Data/
│ ├── AppDbContext.cs -- Entity Framework Core context
│ ├── Migrations/ -- EF Core migrations
│ └── SeedData.cs -- Initial data seeding
├── Utilities/
│ ├── AudioHelper.cs -- Audio file handling
│ ├── ValidationHelper.cs -- Input validation
│ └── ...
├── appsettings.json -- Configuration (DB, Vosk, Coqui, Mistral)
└── Program.cs -- Startup and middleware