See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/organize...
As your Node.js application grows, you'll want to collect your code into modules to better organize and manage it. Writing modular code also helps you reuse logic and functions without duplicating code you've already written. We will reuse the API requests and transform functions we wrote for the ETL pipeline earlier in our server by extracting them into a module.
By the end of this tutorial, you should be able to:
Understand how to organize your Node.js code into modules
Identify the benefits of creating modules to hold our code
Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.