Introduction To Node: Submitted By, Sonel Chandra S7 Roll No-34
Introduction To Node: Submitted By, Sonel Chandra S7 Roll No-34
NODE
SUBMITTED BY,
SONEL CHANDRA
S7
ROLL NO-34
history
• Node.js was developed in 2009 by Ryan Dahl. At that time, Apache
HTTP Server handled the things that Node.js does now, but with less
efficiency. Specifically, Apache couldn’t tackle concurrent requests.
Thus, Node.js was created
• With Node.js, JavaScript developers use server-side scripting to
manifest dynamic web pages. Server-side scripting works by running
user requests on the server-side, or web server, rather than on the
client-side, or web browser.
• The advantage of this scripting technique is that clients do not need to
deal with slow loading times and high CPU usage
WHAT IS NODE JS?
• Node.js is an open source server framework.
• Node.js is a JavaScript runtime built on Chrome's V8
JavaScript engine
• Node.js Uses an event-driven, non-blocking I/O makes it
lightweight and efficient.
• Node.js allows you to run JavaScript on the server.
• Node.js runs on various platforms (Windows, Linux, Unix,
Mac OS X, etc.)
WHY NODE.JS
• Node.js enables developers to use Javascript on the front- and backend as well. Every dev can understand what’s
happening on the entire stack, and make changes if necessary.
• Asynchronous and Event Driven - many connections can be handled concurrently.(Asynchronous I/O is a form
of input/output processing that permits other processing to continue before the transmission has finished.)
• (Event-driven programming is a programming paradigm in which the flow of the program is determined by
events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other
programs/threads.)
• Node.js is the perfect tool for developing high-throughput server-side applications.
• Node.js scales flawlessly, so it can help you to save money on infrastructure costs.
• Being an open-source technology, Node.js is open-source and cross-platform means that the framework is
accessible in two ways.
• By way of being open-source, skilled developers can edit the Node.js source code to their liking, or otherwise
for the improvement of everyone involved.
• Secondly, as a cross-platform software, Node.js is available to virtually any developer no matter their preferred
operating system
• Companies that use Node.js know that JavaScript is the go-to language for building
dynamic websites.
• But they want to take their dedication to JavaScript just a step further by utilizing the language
not only for front-end development, but back-end development too.
• Node.js is a platform many skilled web developers are using today to amp up their back-end
development while still using the same tried-and-true language – JavaScript.
• LinkedIn Netflix Uber Trello PayPal
• NASA eBay
• Medium
• Groupon
• Walmart
• Mozilla
5
WHERE ALL NODE.JS
• I/O bound Applications
• Data Streaming Applications
• JSON APIs based ApplicationsReal-Time Chats,
• Complex Single-Page applications,
• Real-time collaboration tools,
Architecture of node.js
VALIDATE NODEJS INSTALLATION
Printing hello world
Hello world
• Create a file named app.js containing the following contents:
const http = require('http');