650) this.width=650; "src=" http://blog.fens.me/wp-content/uploads/2015/02/express4.png "width=" "height=" 400 " alt= "express4.png"/>
Objective
Nodejs is a young programming framework that is full of vitality and passion, and has been kept up to date with rapid Updates. The official web Development Library express, based on nodejs, is also developing in sync, upgrading a large version every year, and even doing major surgery on the bottom of the Framework. When Express4, replace the Mid-piece library Connect and replace it with more granular libraries Instead. The benefits are clearly that these middleware can be more freely updated and released, and will not be affected by the express release cycle, but the problem is also very tricky, incompatible with the previous version, upgrade means to modify the Code.
I've written an article Before. NODEJS Development Framework Express3.0 Development notes – starting from scratch ", Many of the newly-learned node friends are reference, but because Express has been upgraded, the article has some of the code has been unable to use, so there is this article introducing EXPRESS4.X.
Directory
Establish engineering
Directory structure
Package.json project configuration
App.js Core File
Bootstrap Interface Framework
Routing Features
Program code
List of changes to express3.x and express4.x
Overall article: http://blog.fens.me/nodejs-express4/
Node. JS Development Framework express4.x