node js notes pdf
![]() |
| node js notes pdf |
Introduction
What is node.js ?
Node.js is an open-source, cross-platform runtime environment used for development ofserver-side web applications. Node.js applications are written in JavaScript and can be run ona wide variety of operating systems.
Node.js is based on an event-driven architecture and a non-blocking Input/Output API that is designed to optimize an application's throughput and scalability for real-time web
applications.Over a long period of time, the framework available for web development were all based on a stateless model. A stateless model is where the data generated in one session (such as information about user settings and events that occurred) is not maintained for usage in the next session with that user.
A lot of work had to be done to maintain the session information between requests for a user.But with Node.js there is finally a way for web applications to have a real-time, two-way connections, where both the client and server can initiate communication, allowing them to exchange data freely.
Why use Node.js ?
we will have a look into the real worth of Node.js in the coming chapters, but what is it that makes this framework so famous. Over the years, most of the applications were based on a stateless request-response framework. In these sort of applications, it is up to the developer to ensure the right code was put in place to ensure the state of web session was maintained while the user was working with the system.But with Node.js web applications, you can now work in real-time and have a 2-way communication.The state is maintained, and the either the client or server can start the communication.
Table Of Content Of Node.js pdf book
Chapter 1: Introduction
• What is node.js
• Why use Node.js
• Features of Node.js
• When to use and not use Node.js
Chapter 2: Download & Install Node.js
• How to install node.js
• Installing node through a package manager
• Running your first Hello world application in Node.js
Chapter 3: Modules
• What are modules in Node.js
• Using modules in Node.js
• Creating NPM modules
• Extending modules
• Publishing NPM Modules
• Managing third party packages with npm
• What is the package.json file
Chapter 4: Create Server and Get Data
Chapter 5: Node.js with Express
• What is Express.js
• Installing and using Express
• What are Routes
• Sample Web server using express.js
Chapter 6: Node.js with MongoDB
• Node.js and NoSQL Databases
• Using MongoDB and Node.js
• How to build a node express app with MongoDB to store and serve content
Chapter 7: Promise, Generator, Event and Filestream
• What are promises
• Callbacks to promises
• Generating promises with the BlueBird library
• Creating a custom promise
• Callbacks vs generators
• Filestream in Node.js
• Emitting Events
Chapter 8: Testing with Jasmine
• Overview of Jasmine for testing Node.js applications
• How to use Jasmine to test Node.js applications
About Node.js People Also Search For
If you are searching for Kali Linux pdf notes then click me.

