Node.js
Avancé
Structuring a Node.js project with layered architecture

Type d'évaluation

Mise en situation réelle

Analyse

Intelligence Artificielle

Compétences ciblées

nodejs
architecture
layered
separation-of-concerns
express

Scénario Technique

Context A growing Express application has all business logic mixed directly into route handlers, making it untestable and hard to maintain. The Problem Route files contain database queries, business rules, and HTTP response logic all at the same level, with no separation of concerns. Constraints Separate the codebase into routes, controllers, services, and repositories layers. Each layer communicates only with the one directly below it. Define clear interfaces between layers using dependency injection. Expected Deliverable A refactored Express application following a layered architecture (routes, controllers, services, repositories), demonstrating clear separation of concerns and testable service logic.

Prêt à évaluer ce talent ?

Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.

Commencer le Défis
    Node.js - Structuring a Node.js project with layered architecture | Défi Technique & Recrutement — CodeDuel