# B1 Meister – ÖSD Zertifikat B1 Trainer (Deutsch ↔ Arabisch) Next.js app to prepare for the ÖSD B1 exam: Hören, Lesen, Schreiben, Sprechen, Grammatik, Wortschatz – with Arabic translations, XP, levels, streaks, badges and daily reminders. ## Start ```bash npm install npm run dev ``` Open http://localhost:3000 (best in Chrome or Edge – needed for German text-to-speech and speech recognition). ## Optional: AI conversation partner Without a key the app works fully with its built-in offline trainer. To enable free AI conversations (Sprechen) and AI text correction (Schreiben), create `.env.local`: ``` ANTHROPIC_API_KEY=your-key ``` and restart `npm run dev`. ## Deploy with Coolify 1. Push this folder to a Git repository (GitHub/GitLab/Gitea). 2. Coolify → New Resource → your repo → Build Pack **Docker Compose** → file `docker-compose.yml`. 3. Set the domain for service `app` (Coolify provides HTTPS – required for microphone, notifications and installing the app on Android). 4. Optional: add `ANTHROPIC_API_KEY` under Environment Variables. 5. Deploy. ## Daily reminders Settings (⚙️) → "Jeden Tag erinnern". On a phone, install the app ("Add to Home screen") for background notifications. The most reliable option on any phone: "Als Kalender-Erinnerung speichern" (adds a daily repeating calendar alarm). ## Content - 14 listening exercises (all 4 parts, TTS with different voices, exam mode) - 10 reading texts (all 5 parts) with glossary + full Arabic translation - 12 writing tasks (3 task types) with Redemittel, self-check, model answers - Speaking: 12 conversation topics (60+ questions), 4 planning tasks, 5 presentations with follow-up questions - 16 grammar lessons explained in Arabic with ~100 exercises - 212 B1 words in 14 topics: flashcards (spaced repetition), quiz, der/die/das game, memory - Mock exam (Modelltest) Progress is stored in the browser (localStorage).