Nodejs Study Chapter

Source: Internet
Author: User

Recently in the search for work, and then all said will be a background language better, choose to choose, think Nodejs more interesting, began to learn this.

In fact, personally, no one to lead or do not have a good book to follow, such a study is particularly tired, like I just started the rookie, completely do not understand ...

So write down this blog, record their learning results and hope to have the great God pointing twos.

First or installation, Nodejs directly to the official website to download http://www.nodejs.org/corresponding to their own system is good. Then I started installing NPM, and I've been watching it for a long time to know what NPM means (don't laugh ...). ), so to understand.

Nodejs is a big house, and NPM is the main switch. Then there are all kinds of electrical appliances in the house that allow us to achieve various functions. The best thing we've used at the moment is express.

The landlord is under Windows, do not laugh. Open the cmd window to enter Npm-g Express. -G is the global meaning, it can be used under the CMD. This is usually set up here.

Then the installation is successful and you can express-v look at your Express version. Then we create a project, Express-e Firstproject. Here-e is the meaning of the template engine. Now is the default Jade template engine, I mean really can't play, or this is better.

If successful, you are prompted to create the file as well as the directory.

  

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.