This is a basic project structure for a node js project contain a full support for async/await , proper error handling, basic Joi Validation object oriented para-diagram and much more
I like your structure. Did you checkout the awesome node repo? It contains a link to Node JS best practices and within the link, there is a sub section on structuring by component. Would be nice to see the folder structure utilize this
Hi,
Your project structure is great, but i think if you seperate Schema's from controllers then your project structure will more cleaner.
A middleware function will validate req body data with the schema.