-
Notifications
You must be signed in to change notification settings - Fork 0
Node.js
su-mufeng edited this page May 20, 2020
·
7 revisions
- goodgood
Node.js is a JavaScript running environment based on Chrome V8 engine. Node.js uses an event-driven, non-blocking I / O model
- 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.
- 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.
- In November 2009 and April 2010, both JSConf conferences arranged Node.js lectures.
- 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.
- In July 2011, Node released the Windows version with the support of Microsoft.
- 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.
- 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");