Tuesday 13 March 2018

Project/Folder Structure for Node/Express Apps

Hi there,There are lots of good tutorials out there for getting starting with Node and Express, but many of them end when you have a 300-line server.js file that handles a handful of endpoints with minimal middleware.That's obviously unmaintainable long-term, so what sorts of project/folder structure best-practices do you follow? Or, do you know of good documents out there?I'm not talking about monolith/microservices directly, here. This is just about project/folder structure for a developer to stay productive.I see some advocates of the typical MVC separation of concerns, but also have seem some compelling arguments to structure by components and against MVC.What has worked for you? What advice would you give someone starting up a relatively new app?

Submitted March 13, 2018 at 05:44PM by aust1nz

No comments:

Post a Comment