I am working on transitioning an app. from c# to node.js and am trying to find where complex logic should go? For c#, ddd is a good fit where logic would normally exist in the domain and logic that was not a good fit for the domain itself could go into domain services, etc. With the way mean is structured and javascript in general, this seems to be an awkward fit. Doable but awkward. The app. I am working on is a social network, so I am using the microservices approach. In the node.js world, what are the preferred approaches to handling complex business logic? What is the preferred folder structure for mean applications? Are there preferred approaches over patterns and practices like ddd, service layer, repository, etc.?
Copyright Notice:Content Author:「user1790300」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41551089/moving-from-c-net-to-node-js-recommendations-for-design-patterns