The Node Beginner Book

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Manuel Kiessling
Publisher: Lean Publishing
Year: 2014

Language: English
Pages: 56

Table of Contents......Page 6
Special notice......Page 7
Structure of this document......Page 9
JavaScript and You......Page 11
``Hello World''......Page 12
The application stack......Page 14
A basic HTTP server......Page 16
Passing functions around......Page 17
How function passing makes our HTTP server work......Page 18
Event-driven asynchronous callbacks......Page 19
How our server handles requests......Page 21
Finding a place for our server module......Page 22
What's needed to ``route'' requests?......Page 24
Routing to real request handlers......Page 27
Making the request handlers respond......Page 31
Serving something useful......Page 39
Handling POST requests......Page 40
Handling file uploads......Page 45
Conclusion and outlook......Page 55