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

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.

主站蜘蛛池模板: 青河县| 扬州市| 台北市| 库尔勒市| 阿克苏市| 蒙山县| 方城县| 四平市| 札达县| 朝阳县| 会同县| 寿宁县| 平江县| 都江堰市| 钟祥市| 万山特区| 清流县| 澄城县| 乌海市| 东乌珠穆沁旗| 康定县| 奇台县| 岳阳市| 宜城市| 布尔津县| 西宁市| 盐城市| 合作市| 于田县| 全椒县| 龙陵县| 关岭| 兴城市| 红安县| 平凉市| 多伦县| 金阳县| 乾安县| 济阳县| 牡丹江市| 团风县|