Applications grow, sometimes quickly. Code gets written, shoved in to files and we move on to the next feature. Over time, the code begins to get out of hand, and suddenly the once clean router folder and application “lib” is a mess! It happens to all of us – none of us are immune to […]
The watchify command line takes the same basic parameters as the browserify command line. But in addition to bundling your code once, it will watch for file system changes and re-bundle your code automatically. In this episode, you’ll see how to use watchify with browserify, to automate the bundle step for your development environment, reducing the amount of manual effort that it takes to get your application ready for your browser.
NodeJS provides access to re-usable modules through a package manager called NPM – Node Package Manager. In this episode, you’ll learn the basics of installing modules, including them in your project and using them in your code.
Modules are an important concept in NodeJS. So important, in fact, that every .js file you create is a module – or has the potential to be one, at least. In this episode, you’ll learn the basics of the NodeJS module system and how to export functionality from one file and import it in to another.