Home  >  Article  >  Web Front-end  >  what is node express

what is node express

藏色散人
藏色散人Original
2021-12-07 15:25:532778browse

express is a flexible Node.js web application development framework that provides a powerful set of features for web and mobile applications. It is also the underlying library for many other popular Node frameworks.

what is node express

The operating environment of this article: Windows 7 system, nodejs version 10.16.2, Dell G3 computer.

What is node express?

Express is a fast, open and minimalist web development framework based on the Node.js platform.

Express is a flexible Node.js web application development framework kept to a minimum, providing a powerful set of features for web and mobile applications.

Express is the most popular Node framework and is the underlying library for many other popular Node frameworks.

Express provides the following mechanism:

  • Write handlers for requests (routes) using different HTTP verbs in different URL paths.

  • Integrates the "view" rendering engine to generate responses by inserting data into templates.

  • Set common web application settings, such as the port used for connections and where to render response templates.

  • Add additional request-handling "middleware" anywhere in the request-handling pipeline.

Although Express itself is minimalist, developers have solved almost all web development problems by creating various compatible middleware packages. These libraries can implement cookies, sessions, user login, URL parameters, POST data, security headers and other functions. A list of middleware packages maintained by the Express team (there is also a list of popular third-party packages) can be found on the Express Middleware webpage.

Note:

This flexibility is a double-edged sword. While there are middleware packages that can solve almost any problem or need, picking the right package can sometimes be a challenge. There is no "right way" to build an application, and many of the examples on the Internet are suboptimal or only show the tip of the iceberg of what it takes to develop a web application.

Recommended learning: "nodejs video tutorial"

The above is the detailed content of what is node express. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn