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
Node.js tutorial pdf
Size : 145.34 Kb
File type : pdf
Downloads: 536
Created: 2017-03-17

Others related eBooks about Node.js tutorial pdf

Building iPhone Apps with HTML, CSS, and JavaScript

It's a fact: if you know HTML, CSS, and JavaScript, you already have the tools you need to..., download free JavaScript tutorial in PDF (186 pages) created by ....

Go for Javascript Developers

This book compares between two programming languages, Golang (or "Go") and ECMAScript (or "Javascript" / "JS"). The merits of this pairing is the popularity of these languages. That's it. They are not similar, in fact, they are quite different. Javascript is an event driven, dynamically typed and in...

Angular Testing Succinctly

Though sometimes perceived as a hurdle, testing can save developers from heartbreak in the..., download free Angular tutorial in PDF (94 pages) created by Joseph Booth ....

How To Code in Node.js

Node.js is a popular open-source runtime environment that can execute JavaScript outside o..., download free Node.js tutorial in PDF (418 pages) created by David Landup ....

Node.js, a Developer's Guid

Download free course To Learn how to reading documents from the database with Node.js. training PDF tutorial ....