"Node. JS Development Guide"

Source: Internet
Author: User

"Node. JS Development Guide" This book, which only has more than 180 pages, I spent one months in my spare time is a rough look. In the middle because the company project overtime, interrupted several times. Greatly drag the progress, now empty out of time, write a little bit of their own feelings.

Start with the disadvantages first:

  I think the biggest drawback is the old. Node is a fast-changing thing, and the content of this book has a great fork in the current node. For example, the book mentions installing node, using the system's Apt-get or Yum tool. However, the Terminal tool for node. js after installation is Nodejs, not node. This leads to a new problem, the Supervisor module mentioned in the later section of this book is unusable because it uses the "node" command to start the source code.

The way I propose is to install NPM after installing the multi-version management tool mentioned in the book "N." With the version of node. js installed with N, the node link is generated under/usr/local/bin. This allows the node command to be used in the terminal. Of course, if you don't want to use multiple versions. I recommend that you create a nodejs soft connection under/usr/bin/named node. can also be used normally.

The second is that the version of Express that is spoken in the fifth chapter of the book has changed a lot. The latest express has entered the 4.x era. A number of new features have been added. And it doesn't need to be in the book. Specify the template engine when you use the Express tool to build projects quickly. It is useless even if specified, because the Jade template engine is the default. To use the Ejs mentioned in the book, you must manually modify the configuration in the App.js. I suggest you learn the Jade template engine. In fact, very simple and easy to understand, attached to the website link, there is a very concise tutorial. http://jade-lang.com/

Tips for Learning:

  I've been learning node for a while, and I think before I learned node, I thought I should learn the advanced features of JavaScript first. So, I think the "node. JS Development Guide" book after the installation chapter, should jump to the next section of Advanced JavaScript features, first familiar with the content, and then to learn node, can do more with less. This is only for small white like me, if it is the great God, then I have nothing to say. After that, you need to learn express and MongoDB. Although the book tells Express in a case, I would say that Express is not what the book describes. Learning the new version of Express is very necessary. Learning MongoDB is also a great help. This can be introduced into a new knowledge world of NoSQL, non-relational databases.

Both Express and MongoDB are worth spending time alone to learn. This is also my next goal.

Next Goal:

  Express and MongoDB are necessary to learn. But I would like to put it in a big frame to learn, by building some small projects. I think I can help me learn faster. Angualar.js looks like a good choice, and needs to use node. Plus Express and MongoDB to build a small website that looks like a good oh.

"Node. JS Development Guide"

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.