Express quick build project, express build project

Source: Internet
Author: User

Express quick build project, express build project

Step 1: Install express. See another blog

Step 2: Use the express command to create a project. Command Line input: express-e ejs projectname


Follow the prompts and run the npm install command in the project file. Why should we execute the npm install command? Open package. json and we can find that:


In the package. json file, we have added express4.9.0 to the dependency. The npm install command is used to install various dependencies.

Then, create a project using the ejs template. If it succeeds, open the file directory and you will find the file:


Let's execute this project:

Node app. js

Open the browser and enter: localhost: 3000

OK. An express project has been set up.

Note: If you run node app. js on the terminal and the terminal exits immediately, you need to add the listening port in app. js:

App. listen (3000 );



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.