The node craftsman book : An advanced nodejs tutorial

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"

An advanced Node.js tutorial

Author(s): Manuel Kiessling
Series: The node craftsman book
Year: 0

Language: English
Pages: 170
Tags: Node.js


Preface
About
Status
Notes on code formatting
Intended audience

Part 1: Node.js basics in detail

Introduction to Part 1
Working with NPM and Packages
Test-Driven Node.js Development
Object-oriented JavaScript
Blueprints versus finger-pointing
A classless society
Creating objects
Object-orientation, prototyping, and inheritance
A classless society, revisited
Summary
Synchronous and Asynchronous operations explained
Visualizing the Node.js execution model
Blocking and non-blocking operations
Using and creating Event Emitters
Introduction
Creating your own Event Emitter object
Summary
Optimizing code performance and control flow management using the async library
Executing expensive asynchronous background tasks in parallel
Optimizing code structure with async
Node.js and MySQL
Using the node-mysql library
A first database application
Using node-mysql’s Streaming API
Making SQL queries secure against attacks
Summary
Node.js and MongoDB
Some MongoDB basics
Applying CRUD operations with the low-level mongodb driver
Retrieving specific documents using filters
More complex update operations
Working with indexes
Querying collections efficiently
Summary

Part 2: Building a complete web application with Node.js and AngularJS

Introduction
The requirements from a user’s perspective
High level architecture overview
Setting up the development environment
Milestone 1: A first passing test against the server
Milestone 2: The API responds with actual database content
Abstracting database access
Ensuring a clean slate for test runs
Completing the first spec
Milestone 3: Setting the stage for a continuous delivery workflow
Introducing automatic database migrations
Milestone 4: Giving users a frontend
Setting up frontend dependencies through bower
Serving the frontend through the backend server
Adding the frontend code
Adding AngularJS view templates
Milestone 5: More work on the backend
Adding a route for retrieving categories
Making the backend recognize different environments
Milestone 6: Completing the backend and finalizing the application
Creating the route for adding new keywords
Creating the route for updating keywords
Creating the route for deleting keywords
Summary
Epilogue