Summary: Express is a node. js -based framework. based on the node. JS Platform, the fast, open, minimalist Web Development Framework based on node . JS has the following two: Express, Koa, author of theKOA Framework Express , also developed a framework.
1. What is Express?
based on The node. JS platform, a fast , open, Minimalist web development framework.
Official website:http://www.expressjs.com.cn/
The first step is to define the scope of the Express.
Node . JS can be developed in two ways:
- command-line-based tools
- Web Development
Express is for Web development only.
2.
installation
Install directly with the NPM command.
--save, which indicates the need to write the package.json file, is not considered at this time.
Locate your project directory and install it using the command.
Pay attention to the mechanism of its installation,
In my environment, the installation location is as follows:
3.
Create your first Express app
Express is a framework that is a third-party module (package).
then, in the browser, enter localhost:3000, which is accessed as follows:
Node JS Express initial introduction and Installation