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

The Node.js backend

Modern apps have several requirements, which cannot be provided by the app itself, such as central data storage, communication routing, and user management. In order to provide such services, apps rely on an external software component known as the backend. The backend will be executed on one or more remote servers, listen to network requests from the devices that run the app, and provide them with the services that requests require.

The backend that we will use in this book is Node.js, a powerful but strange beast in its category. Node.js, at the time of writing this book, is the only major backend that is written almost entirely in JavaScript, which in reality is a frontend scripting language. The creators of Node.js wanted a backend that could be integrated with the apps written in JavaScript as seamlessly as possible, and you cannot get much closer to that than Node.js. Beyond this, Node.js is known for being both reliable and high-performing.

In terms of architecture, Node.js is highly modularized and designed from the ground up to be extendable through plugins or packages. Node.js comes with its own package management system, Node Package Manager (NPM), through which you can easily install, remove, and manage packages for your project. You will see how to use NPM in order to install other necessary components later in this chapter.

主站蜘蛛池模板: 朝阳县| 舞阳县| 左贡县| 娱乐| 庄浪县| 诏安县| 威远县| 财经| 吉隆县| 永福县| 鹿泉市| 苏尼特左旗| 宜良县| 沧源| 鄂尔多斯市| 潮安县| 吴忠市| 花莲市| 凌海市| 抚宁县| 抚远县| 满城县| 新沂市| 新干县| 江山市| 资源县| 南靖县| 军事| 拉孜县| 邵阳市| 祁门县| 哈尔滨市| 和平区| 黄梅县| 桐庐县| 黄龙县| 田阳县| 土默特左旗| 芦山县| 松潘县| 西乌|