Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

file organization in node.js project

Tags:

node.js

When creating a node.js project (express based if it matters), what is the recommended way to store the different files building up the project?

More specifically, dependent external models (being declared as dependencies in package.json) are downloaded to ./node_modules, so where should I place my "locally" created modules ?

Thanks

like image 899
epeleg Avatar asked Sep 12 '26 10:09

epeleg


1 Answers

See nodejs-express-mongoose-demo. It has the perfect file structure.

like image 121
zag2art Avatar answered Sep 14 '26 08:09

zag2art



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!