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

  • MEAN Web Development
  • Amos Q. Haviv
  • 221字
  • 2021-08-05 17:46:47

Introduction to Express

To say that TJ Holowaychuk is a productive developer would be a huge understatement. TJ's involvement in the Node.js community is almost unmatched by any other developer, and with more than 500 open source projects, he's responsible for some of the most popular frameworks in the JavaScript ecosystem.

One of his greatest projects is the Express web framework. The Express framework is a small set of common web application features, kept to a minimum in order to maintain the Node.js style. It is built on top of Connect and makes use of its middleware architecture. Its features extend Connect to allow a variety of common web applications' use cases, such as the inclusion of modular HTML template engines, extending the response object to support various data format outputs, a routing system, and much more.

So far, we have used a single server.js file to create our application. However, when using Express you'll learn more about better project structure, properly configuring your application, and breaking your application logic into different modules. You'll also learn how to use the EJS template engine, managing sessions, and adding a routing scheme. By the end of this section, you'll have a working application skeleton that you'll use for the rest of the book. Let's begin our journey of creating your first Express application.

主站蜘蛛池模板: 南宫市| 辽阳县| 苏尼特右旗| 敦煌市| 济源市| 交口县| 华宁县| 柳河县| 阳江市| 满城县| 吴桥县| 绥芬河市| 江孜县| 澎湖县| 青田县| 徐州市| 肃南| 贡嘎县| 仙桃市| 卢湾区| 万荣县| 靖边县| 长兴县| 营口市| 大关县| 武川县| 利津县| 景洪市| 双江| 文水县| 宜丰县| 大新县| 陆良县| 正阳县| 绥江县| 湄潭县| 永宁县| 荥经县| 嘉黎县| 合水县| 遂川县|