官术网_书友最值得收藏!

Node.js and npm

Node.js is JavaScript on steroids. Initially, a fork of the V8 JavaScript engine from the Google Chrome browser, Node.js was extended with more functionality, specifically to make JavaScript useful on the server-side. File handling, streams, system APIs, and a huge ecosystem of user-generated packages are just some of the facts that make this technology an outstanding partner for your web development.

The node package manager, NPM, is a door to over 200,000 packages and libraries that can help you build your own application or library. The Node.js philosophy is very similar to the UNIX philosophy, where packages should stay small and sharp, but they should use composition to achieve greater goals.

To build our application, we will rely on Node.js as the host for the tools that we're going to use. We should, therefore, make sure that we install Node.js on our machine so that we are prepared for the next chapter, where we will start to craft our task management application.

The code within this book was written using Node.js 8.9.0. Please make sure you're installing an equivalent Node.js version on your system. You can get Node.js from their website at https://nodejs.org, and it should be a breeze to install this on any kind of operating system by following the instructions on their website.

Once you've installed Node.js, we can perform a simple test to check whether everything is up and running. Open a Terminal console and execute the following command:

node -e "console.log('Hello World');"
主站蜘蛛池模板: 集安市| 通山县| 大田县| 汉中市| 绵竹市| 黄梅县| 买车| 华蓥市| 马鞍山市| 平陆县| 民勤县| 宜良县| 漳浦县| 济阳县| 定陶县| 伊宁县| 洞头县| 萨迦县| 寻乌县| 凯里市| 大名县| 泰安市| 昌都县| 金秀| 余姚市| 峨眉山市| 合肥市| 当涂县| 邵阳市| 平湖市| 衡阳市| 泰安市| 望江县| 阳城县| 黔东| 元江| 苏尼特左旗| 宽城| 梁河县| 西林县| 石狮市|