Friday, 18 January 2019

Learning how to properly structure code in NodeJs applications

Apologies if this isn't an appropriate post in this subreddit or if it's in the wrong subreddit entirely.Over the summer I spent a lot of time using Ruby on Rails but have decided I want to learn NodeJS, specifically the ExpressJs framework. In rails there is a fairly rigid way of structuring everything.My question is how should I go about learning how to properly structure my Node applications. Right now basically all of my database connections, mailers, interactions with the database and other logic is in my app.js or index.js.I'm assuming this shouldn't be the case. Where can I find tutorials or examples of well structured applications.Thanks

Submitted January 18, 2019 at 05:51PM by JackTheTradesman

No comments:

Post a Comment