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

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.

主站蜘蛛池模板: 宁河县| 永德县| 湘潭县| 中卫市| 庆阳市| 自治县| 阜南县| 舟曲县| 岳西县| 隆子县| 罗田县| 水富县| 阿荣旗| 连州市| 巴林左旗| 赤壁市| 合川市| 湘乡市| 措美县| 乌海市| 鲁山县| 丰都县| 清新县| 京山县| 民权县| 远安县| 驻马店市| 大埔区| 彰化市| 黄大仙区| 乌苏市| 萨迦县| 运城市| 喀喇| 镇安县| 合江县| 二连浩特市| 南涧| 郁南县| 崇文区| 仪陇县|