Node JS Express initial introduction and Installation

Source: Internet
Author: User

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:

    1. command-line-based tools
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.