DEV Community

Discussion on: Bulletproof node.js project architecture 🛡️

Collapse
 
madbence profile image
Bence Dányi

i'm not sure about the file structure. i think that when you look at a good architecture, it should be obvious what's the purpose of the application, but if you look at folders like api, services, models, that'll tell you nothing. i usually organize files by their purpose, eg. user, product, order, etc.

Collapse
 
sohaibraza profile image
SohaibRaza

I agree with you components should be self contained.