What is Express?
Express.js is an MVC development framework for NODEJS and supports a variety of templates such as Jade. For Web applications, there are many common patterns such as templates and routing, although you can also write code to solve these problems, but many developers will choose such as express framework to avoid such work, and contribute to it
1. Install Express, the command is: NPM Install-g Express, here-G means that express will be installed globally and can be used anywhere in the system with its commands
2. Install the Express command tool, the command is: NPM install-g express-generator ( If you do not do this, you will be reported that Express is not an internal or external command error )
3. Check if Express is installed successfully, command: EXPRESS-V (V must be capitalized)
4. Create a project using Express
Then express reminds us to install the dependent modules needed to run the Express
5. Run, note that the command is NPM start
6. Enter in the browser: http://127.0.0.1:3000, ah, finally succeeded, so we created a project called Express_example.
7. Analysis, the entire Express_example project directory is as follows
node. JS Learning Notes under Windows (6)---install Express