Node.js tutorial pdf
This tutorial is designed for software programmers who want to learn the basics of Node.js and its architectural concepts.
The purpose of this document is to allow you to develop applications with Node.js by learning all the advanced notions you will need with JavaScript.
Node.js is a framework for designing sites programmed in JavaScript on the server side. Its first version dates from 2009. However, unlike PHP for example, it is not a simple script language running on a pre-existing server; In fact, it is necessary to code itself with node the different layers of the server. It will thus be necessary to set up:
- The HTTP server itself, with the management of various HTPP messages
- Routing queries to the correct server pages
- What to retrieve the parameters entered in the URL
- A system to send content to the client based on the URL
- A device enabling, in JavaScript, to manage accesses to the file system to allow not only the reading, but also the writing and even the sending of files by the user.
Table of contents
- Threads
- Events
- Event queue
- Inner loop
- Example readRequest(socket)
- Add events and an event queue
- Add a proper module system
- Node.js reading a file
- Node Modules
- Import using require()
- Module files have a private scope
- Huge library of modules (npm)
- Node Buffer class
- Buffer operations
- Programming with Events/Callbacks
- Listener/emitter pattern
- Typical EventEmitter patterns
- Readable streams
- Socket setup for TCP connections
- TCP Networking on Node.js
| Size | 145.34 Kb |
|---|---|
| File type | |
| Downloads | 611 |
| Created | 2017-03-17 |
Others Node.js tutorials
Others related eBooks about Node.js tutorial pdf
-
Angular Succinctly
Download free course Angular Succinctly, pdf file on 124 pages by by Joseph D. Booth....
-
The React Beginner's Handbook
The React Beginner's Handbook follows the 80/20 rule: learn in 20% of the time the 80% of ..., download free React tutorial in PDF (40 pages) created by ....
-
PHPUnit Manual
Download free course PHPUnit Manual, pdf file on 178 pages by Sebastian Bergmann....
-
How To Build a Website With CSS and HTML
This project-based eBook will introduce you to Cascading Style Sheets (CSS), a stylesheet ..., download free CSS tutorial in PDF (172 pages) created by Erin Glass ....
-
The JavaScript Way
Love it or hate it, JavaScript is avidly eating the world of software development. From we..., download free JavaScript tutorial in PDF (288 pages) created by Baptiste Pesquet ....
-
The Vue.js Handbook
Vue.js is a very impressive project. It's a very popular JavaScript framework, one that's ..., download free Vue.js tutorial in PDF (122 pages) created by ....
-
Three.js Cookbook
Modern browsers are becoming more powerful each year and in recent years have adopted WebG..., download free Three.js tutorial in PDF (300 pages) created by ....
-
Building Front-End Web Apps with Plain JavaScript
This book shows how to build front-end web applications with plain JavaScript, not using any (third-party) framework or library. A front-end web application can be provided by any web server, but it is executed on the user's computer device (smartphone, tablet or notebook), and not on the remote w...
-
Multiple-Aspect Analysis of Semantic Trajectories
Download free course Multiple-Aspect Analysis of Semantic Trajectories, pdf file on 142 pages by Konstantinos Tserpes, Chiara Renso, Stan Matwin....
-
The JavaScript Beginner's Handbook
The JavaScript Beginner's Handbook follows the 80/20 rule: learn in 20% of the time the 80..., download free JavaScript tutorial in PDF (70 pages) created by ....