Node.js - bernardopnunes/SoftwareEngineeringSDUW GitHub Wiki
## Groups:
- 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
- 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.
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");
5.Advantages of node.js
- Nodejs syntax is completely js syntax You can learn Nodejs backend development if you know the basics of js. Node breaks the situation that JavaScript can only run in browsers. Unified front-end and back-end programming environments can greatly reduce development costs
- NodeJs super high concurrency ability The primary goal of NodeJs is to provide a simple development tool for creating high-performance servers and various applications that can run on the server. NodeJs does not create a new thread for each client connection, but only uses one Thread. When a user is connected, an internal event is triggered, and through non-blocking I / O and event-driven mechanisms, the Node.js program is also macroscopically parallel. Using Node.js, a server with 8GB memory, can handle more than 40,000 user connections at the same time
- Realize high-performance servers Node.js is a development tool for developing various web servers. In the Node.js server, it runs the high-performance V8 JavaScript scripting language, which is a scripting language that can run on the server side.
- Short development cycle, low development cost and low learning cost Node.js itself spends minimal hardware costs, pursuing higher concurrency and higher processing performance.
Division of work
- Meilin Guo(@juicyguo) summary
- Ziyue Wang(@Ashley-zy)summary
- Yilin Li(@SakuraLyl)Introduction and examples of node.js
- Ye Tao(@taoye886)The advantages and disadvantages of node.js
- Jinran Wang(@Eilands) Hisotory
- Mufeng Su(@su-mufeng) do wikipage The advantages and disadvantages of node.js
- Xinyi Dai(@DaisyDai233) The advantages and disadvantages of node.js
- Shaofei Xu(@Sophie973) The advantages and disadvantages of node.js
- Rao Wang(@Wendy-rao) the code