NestJSأساسي
Création d'un contrôleur NestJS minimal avec route GET fonctionnelle
السيناريو
Contexte : Vous démarrez une nouvelle API backend avec NestJS pour un projet interne. Le Problème : Aucun endpoint n'est encore exposé et l'équipe a besoin d'une route simple pour valider l'infrastructure. Contraintes : Utiliser la CLI NestJS standard. Créer un module et un controller sans dépendances externes. Livrable attendu : Implémenter un controller avec une route GET /health retournant un JSON { "status": "ok" } avec code HTTP 200.
المهارات المستهدفة
nestjscontrollerapibackend
حالات تطبيقية أخرى في NestJS
- Connexion robuste à une base de données avec TypeORMمتقدم
- Conception d'une architecture hexagonale enterprise-ready avec NestJSخبير
- Gestion centralisée des exceptions avec filtre personnaliséمتقدم
- Implémentation d'un système d'authentification avancé avec refresh token rotatif et blacklistخبير
- Implémentation d'un cache simple avec CacheModuleمتقدم
- Implémentation d'un système de monitoring et tracing distribuéخبير
أسئلة أصلية من تصميم CodeDuel. لا ترتبط CodeDuel بأي ناشر أو هيئة اعتماد مذكورة؛ أسماء الشهادات والعلامات التجارية مملوكة لأصحابها، ولا تُذكر إلا للإشارة إلى المجال الذي يغطيه الاختبار. الإبلاغ عن محتوى
