Node. js has to say 12 points _ node. js-js tutorial

Source: Internet
Author: User
In this article, I will share my personal information on node. I hope to help you understand and understand js. node. javascript on the server side, which allows javascript code to run on the backend (out of the browser environment.

2. event-driven, asynchronous I/O programming mode (single thread) is its core.

3. node. js's javascript Engine is v8, from the google chrome project. V8 claims to be the world's fastest javascript Engine.

4. node. js has built-in http server support, which means you can easily implement a combination of websites and servers.

5. commonnjs tries to define an api used by a common application to fill in the simplicity of the javascript standard library. Node. js is the implementation of commonjs.

6. node Package Manager (npm), which can be used to install some applications online.

7. Basic node usage: node xxx. js (script file name) or node-e "xxxxxxxxx" (code that can be directly executed)

8. node press enter --> repl (read-eval-print loop) mode. Press ctrl + c twice in a row to exit repl mode.

9. Use the supervisor to refresh the script for debugging. install: npm install-g supervisor to start the application: supervisor app. js

10. The module is a basic component of the node. js application. The files and modules correspond one by one.

11. The node. js package is a directory with package. json under the top-level directory.

12. Start angular-seed-master: node scripts/web-server.js with node

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.