Organize Your Node.js Code into Modules

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

This tutorial is part 3 of 7 tutorials that walk through using Express.js to create an API proxy server.

Log in or Sign up to view the complete tutorial.

Sign in with your Osio Labs account
to gain instant access to our entire library.

Data Brokering with Node.js