The project setup
In this section, we will install and configure the tools that we will use to build our package. We will assume that you know how to use the command line and you have Node installed on your system. You can install Node by either following the instructions from Node.js's website (http://nodejs.org/download/) or using a package manager in Unix-like systems.
Installing the Node modules
The Node Package Manager (npm) is a program that helps us to manage dependencies between Node projects. As our project could be a dependency of other projects, we need to provide information about our package to npm. The package.json
file is a JSON file that should contain at least the project name, version, and dependencies for use and development. ...
Get D3.js: Cutting-edge Data Visualization now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.