[TL; DR] Just read the bits in bold .
I am new to Node.JS, but am in the fine building of some work projects. Now I have a burning question that I have been googling for about half an hour, but all I can find is disappointing lightweight tutorials that don't answer my question, so here I go ...
I have a Node.JS project that uses an Express framework. The code for one of the routes now becomes quite large, so my instincts, as a good programmer, should break it into its own class, module or package, or whatever it is called ... and here is my problem. Where is the language tutorial around Node.JS and how to do this by cutting your own code into neatly modulated, easy to read pieces?
It seems that every guide there looks like this ...
- Create a NodeJS Project
- Install the npm module in the project
- Add one route that calls the module
- Indulge yourself on the back and start applying for the job as a full-stack JavaScript developer.
It makes my head! I want to get deep and dirty with custom-made code, but I also want to do something in a certain standard way, but I donβt know which folders to create, how to enclose them, what naming convention follows or something like that . Where is Jeff's Way for NodeJS?
Please someone call me in the direction of a good textbook or some documentation on this topic so that I can continue my studies. Thank you in advance.
source share