“Mixu’s Node book: A book about using Node.js”, by Mikito Takada, is available in multiple formats for free. Node – or Node.js, as it is called to distinguish it from other “nodes” – is an event-driven I/O framework for the V8 JavaScript engine. Node.js allows Javascript to be executed on the server side, and it uses the wicked fast V8 Javascript engine which was developed by Google for the Chrome browser.
Book Description
In order to learn Node, you need to learn how to write code – not how to use a 3rd party library or a set of spells. I will recommend a few libraries, but the focus is on writing code yourself.
Whenever I cover an API, I will do what I can to include examples and snippets that I have found useful myself. There are many parts that I would like to expand on, but I have to balance writing with a lot of other projects.
Table of Contents
- Introduction
- What is Node.js?
- Simple messaging application
- V8 and Javascript gotchas
- Arrays, Objects, Functions and JSON
- Javascript OOP by example (new)
- Control flow
- An overview of Node, Modules and npm
- Fundamentals: Timers, EventEmitters, Streams and Buffers
- HTTP & HTTPS
- File system
- Child processes, V8 and REPL
- Comet and Socket.io
- Single-page applications