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

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.

主站蜘蛛池模板: 上思县| 天柱县| 诸暨市| 祥云县| 甘南县| 铜山县| 泽库县| 云南省| 孝感市| 轮台县| 长葛市| 民丰县| 新宁县| 观塘区| 丰县| 溧阳市| 枣庄市| 吴堡县| 睢宁县| 亳州市| 镇坪县| 麦盖提县| 通州区| 洛浦县| 富平县| 庄浪县| 广东省| 高青县| 海林市| 赤城县| 丘北县| 宁陵县| 漳州市| 宝山区| 长沙县| 建湖县| 中超| 云安县| 泊头市| 岳普湖县| 凌云县|