Skip to content
su-mufeng edited this page May 20, 2020 · 7 revisions

## Groups:

  1. goodgood

1. What is Node.js

Node.js is a JavaScript running environment based on Chrome V8 engine. Node.js uses an event-driven, non-blocking I / O model

2.Development history

  1. In February 2009, Ryan Dahl announced on his blog that he was going to create a lightweight Web server based on V8 and provide a set of libraries.
  2. In May 2009, Ryan Dahl released some of the original Node packages on GitHub, and in the following months, someone started using Node to develop applications.
  3. In November 2009 and April 2010, both JSConf conferences arranged Node.js lectures.
  4. At the end of 2010, Node was funded by Joyent, a cloud computing service provider. Founder Ryan Dahl joined Joyent to take full-time responsibility for the development of Node.
  5. In July 2011, Node released the Windows version with the support of Microsoft.

3.People who may be interested in it

  • If you are a front-end programmer, you do not understand dynamic programming languages like PHP, Python, or Ruby, and then you want to create your own service, then Node.js is a very good choice.
  • Node.js is JavaScript running on the server. If you are familiar with Javascript, then you will easily learn Node.js.
  • Perhaps, if you are a back-end programmer and want to deploy some high-performance services, then learning Node.js is also a very good choice.

4.Hello world program in node.js

  • var http = require('http');
  • server = http.createServer(function (req, res) {
  • res.writeHeader(200, {"Content-Type": "text/plain"});
  • res.end("Hello World\n");
  • });
  • server.listen(8000);
  • console.log("httpd start @8000");

Clone this wiki locally