How it works...
In step 1, we must externally collect and install the extra Node.js modules that we need to work with. By default, Node.js stores modules that your application depends upon within the same directory as the application, in a sub-directory called node_modules. This has the advantage of making your application quite portable. You can simply zip up the application directory from your development environment, install it to production and reasonably expect things to work.
In step 2, we start writing the Node.js code for our application which begins with the usual interpreter definition to the operating system. We also create global constants to refer to both the built-in and the external modules that we're going to use.
In step ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access