Home

0

Middleware

The concept of middleware Middleware refers specifically to the intermediate processing links of business processes. The calling process of Express middleware is that when a request arrives at the E

0

Route

Route Concept Routing is a mapping relationship. In Express, routing refers to the mapping between client requests and server processing functions. The route in Express consists of three parts, whic

0

MongoDB structure, terminal, CRUD

Mongodb structure Databases Server: After installing mongodb, when the mongodb program is started, the databases server is started. Databases: There are multiple databases in the databases server.

0

Host static resources

express.static() express.static() can be very convenient to create a static resource server. It can specify a directory to be hosted as a static resource folder, and can access all files under the d

0

npm and package

Introduction to Express Express is a fast, open and minimal web development framework based on the Node.js platform. Express is similar to the built-in http module of Node.js, and is specially used

0

Introduction to MongoDB

Install You need to download the package. After decompression and installation, you need to create a \data\db file in the root directory of the C drive to store the data: cd C:\md "\data\db&quo

0

Publish package

Initialize the basic structure of the package The folder my-package of the new key package, as the root directory of the package In the my-package folder, new key the following three files: pac

0

Package structure

Classification of packages Project package: The packages installed in the node_modules directory of the project are all project packages. Project packages can also be subdivided into two categories:

0

npm and package

Package Third-party modules in Node.js are also called packages (just by a different name). Packages are encapsulated based on built-in modules, providing a more advanced and convenient API, which g

0

Loading mechanism of module

Prioritize loading from cache Modules are cached after the first load. This means that multiple calls to require() will not cause the module’s code to be executed multiple times. Whether it is a bui