DEV Community

Discussion on: Bulletproof node.js project architecture 🛡️

Collapse
 
psfeng profile image
Pin-Sho Feng • Edited

I've been using this generic structure, which I find works pretty well in practice in several languages and domains:

/common
  /models (shared models are moved here)
  /...
/feature1
  /data
    /models (optional folder, if project is too small, not worth it
  /domain
    /models
  /presentation
/feature2
  /data
  /domain
  /presentation
Thread Thread
 
santypk4 profile image
Sam

That's a good architecture too! :)