I. Introduction and installation of node. js
A) What is node. js?
- node. JS is a development platform
- Let JavaScript run on the server-side development platform
---Simple is to write a server with JavaScript .
b) node. js feature?
- It can do Web sites with complex logic.
- Be able to do big web apps based on social networks
- Can do a Web socket server
- Can do TCP/UDP socket application
- Ability to develop command line tools
- Can do interactive terminal programs and so on.
c) node. JS features?
- The best feature is the asynchronous I/O and event-driven architecture design
- Single-threaded model used by node. JS (implemented via callbacks)
d) node. JS Development History
A man named Ryan Dahi, he wants to put the server-side code and response to the client's code unified, and designed a development platform.
e) node. JS Installation
- Official Web download (the development of the general should be downloaded on the official website)
Installation package Address https://nodejs.org/en/download/
2. Check if the installation is successful
(1) In the Terminal of window: View path
(2) If you see the Nodejs in Path,
Input command: node–version, check its version number, can see, indicating that the installation was successful.
Introduction and installation of node. js