node. JS Express Getting Started Example 1

Source: Internet
Author: User

1: Download node. js and install it, install it from NPM, choose to install it together.
2:node-v display version, npm-v display version.

3: I am here to agent to the Internet, first set up NPM agent, if the Internet does not need a proxy, you can skip this step.

NPM Config set proxy http://proxy3.bj.petrochina:8080
NPM Config set Https-proxy http://proxy3.bj.petrochina:8080

4: Install the Global Express.


5: View version: Express–v

6: Now that the installation environment is installed, start creating the site. Create the directory first, then express Rc_web

The resulting site structure is as follows:

7: Install dependency, and finally generate the Node_modules directory under the current directory.

8: Start Web site (debug mode)

9: In the browser type: "http://localhost:3000" can see the site started. You can also see the debug information.

node. JS Express Getting Started Example 1

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.