Jump to ratings and reviews
Rate this book

Node.Js Blueprints

Rate this book
Node.js has emerged as a strong alternative to PHP, and has taken the world of web development by storm. Node.js is a platform that's used to build fast, scalable network applications using JavaScript as a server-side scripting language. Starting with an overview of the most popular programming paradigms, you will venture out on a journey to the depths of Node.js, utilizing its capabilities to conceptualize and develop applications using AngularJS, Socket.IO, Backbone.js, Ember.js, and Grunt. Packed with real-world examples and trade secrets gained from years of experience in the web development domain, this book takes you to the next level and teaches you everything you need to know to utilize the astronomical potential of Node.js. As a JavaScript platform, Node.js can also be used for desktop application development, which you will learn about in the final chapter of this book. Krasimir Tsonev is a coder with over 10 years of experience in web development. The author of Node.js Blueprints, Packt Publishing, he works with a strong focus on quality and usability. Krasimir is interested in delivering cutting-edge applications. He enjoys working in the software industry and has a passion for creating and discovering new and effective digital experiences.

268 pages, ebook

First published January 1, 2014

1 person is currently reading
13 people want to read

About the author

Krasimir Tsonev

8 books22 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (55%)
4 stars
4 (44%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 8 of 8 reviews
Profile Image for Seth Kenlon.
Author 10 books11 followers
July 21, 2014
A fantastic book about Node.js and its many advantages over traditional Javascript. If you are a web developer, or are interested in becoming one, and want to know what all the excitement is over node.js, this book will not just explain it to you, but show it to you with practical web applications. Fortunately, node.js is low-level enough that you don't really have to learn it as much as you get to learn all the frameworks and APIs that tap into it, meaning that from Chapter 2 onward, the book demonstrates how to do all kinds of cool things with a handful of existing web services like Twitter and Flickr, as well as custom tools like dynamic websites and even a home-grown blogging platform.

The book does assume that you either know Javascript or at least are enough of a programmer that you can pick it up as you read. It assumes that you already have a web server and testing environment set up, and that node.js is already installed. I didn't mind this, because I do, but if you are a beginner, this is not a book to start with.

If you are a beginner to node.js, however, this is exactly the book to start with. It is refreshingly written in a clear, logical, and fairly exciting style. Its main goal is to get you creating with node.js and as many frameworks and APIs as possible; it provides a good taste of all of these technologies without ever being pedantic or obtuse. If you can't follow along just by reading, then you can download the sample code and actually try it all out. And best of all. it actually makes sense. All the recipes (or "blueprints", I guess) are things that you can actually use in production; they aren't contrived examples invented just for the sake of explanation.

The first chapter, if you are new to multi-threaded programming, is basically worth the price of the book alone. It is probably one of the best explanations of what multi-threaded programming is all about that I have read, and its general principles apply to a lot more than just Javascript. Definitely worth a read. And that's just the first chapter.

The rest of the book demos as many unique technologies as possible along with node.js. You might think that would be overwhelming, but what actually happens is that through seeing how different frameworks and APIs interact with node.js, you get a feel for how Javascript and modern frameworks can be used to create responsive, AJAXy websites. You don't learn one framework; you learn the principle of using frameworks with node.js. And that's what you came for anyway; after putting the book aside, you'll be able to pick up any old framework out there and use it on top of node.js, depending on what you are trying to accomplish.

The final chapter is probably one of my favourites. It covers how to create desktop applications with node.js, which can be awazingly powerful, especially for those poor souls running restrited operating systems (like Mac and Windows, as the author apparently does, since all screenshots are from something resembling Windows '98) that discourage development by the Average User. It's less exciting for Linux users, I think, because Python and Qt and the like have been empowering users to roll their own desktop apps for years. But if you knom Javascript better than you do Python, it still could be a really useful trick to have up your sleeve.

The book is a really good read, wery refreshing in its treatment of the reader and the subject. I would say that whether you are an intermediate web designer or an intermediate programmer in general, this book will have quite a lot for you.
1 review
July 30, 2014
The book, Node.js Blueprints is divided up well into 12 chapters. Each of these chapters demonstrates a practical project showing the developer how to utilize todays Javascript language and frameworks in conjunction with node.js to develop modern web based applications.

From the Preface of the book, "The book is for intermediate developers. It teaches you how to use popular Node.js libraries and frameworks. So, good JavaScript knowledge is required."

This is certainly true, you need to have an awareness and understanding of javascript before tackling the examples. For example in Chapter 3, "Writing a Blog Application with Node.js and AngularJS" the author introduces the fundamentals of AngularJS but only within the confines of the space of this book and context of this example. A previous understanding of AngularJS would be of great benefit here.

The publishers do provide a separate code sample file for download, as most programming books do these days. Although the code samples should be downloaded, it is preferable to type the code into your editor to become more experienced at writing error free code.


Chapter 1 introduces Node.js, a javascript technology, and a number of programming paradigms specifically applicable to node.js.

Of specific relevance is the architectural discussion and the very clear demonstration of developing modular code. This becomes important in the later chapters of testing and building your application.

Chapter 2 introduces the first of the example applications, a basic web site using nodejs and ExpressJS.

As other reviewers, and the author, have noted there are differences between the book and the current technology implementation of Express.js and Node.js. The author will provide an updated chapter highlighting the differences.


Chapters 3 & 4 introduce the fundamentals of real world applications developed using Node.js. A blogging application and a Live Chat application. In particular the live chat application highlights the "real time" capabilities of Node.js and socket.io.

Chapters 5 through 7 continue to introduce and develop various types of applications, from Social Network feeds to Command Line tools.

However, for me personally, Chapters 8 & 9 in particular delivered the most value in the book.

Complexity in modern web application development has increased significantly due to the newer programming technologies available, modern architectural styles (ie modular code, even in CSS with LESS and SASS), dependency management during the build process, automated build, test driven development and so forth. Each of these aspects is critical to a successful deployment of your application.

Reading the chapters on 'build' and 'test' was like lifting a dark cloud of confusion. The introduction to build tools Grunt & Gulp in Chapter 8 and incremental additions to the base code made it very clear and easy to follow what was happening, right down to triggering the build by watching for changes to the code files. By simply following the code samples in the book I was able to set up automated testing using Grunt without errors.


Introduction of the test suites Jasmine and Mocha in Chapter 9 was equally as clear and concise, incrementally building on a basic script. The introduction of testing using a "headless browser" in the form of PhantomJS, allows the developer to test page visits, button clicks and sending of forms.

Chapter 9 closes out by introducing DalekJS, a Nodejs module which allows developers to test real world browsers, such as Chrome, Firefox and Internet Explorer. As the user has choice of their web browser today, it is important to be able to test your code in as many environments as possible.

Gaining a thorough understanding of the build and test processes as described by these 2 chapters will provide a solid foundation for writing great web applications.

Chapter 10 explores the world of modular CSS by firstly explaining and then introducing CSS Pre-Processors. There are a number available today and the most popular are introduced.

REST stands for Representational State Transfer and it is an architectural principle of the Web. In most of the cases, the server has resources that need to be created, fetched, updated, or deleted. The REST APIs provide mechanisms to perform all these operations.

Chapter 11 introduces and develops a restful API to manage an online library. As with all previous chapters, an incremental approach to developing the scripts and databases leads to a working sample of REST based web application.

The last chapter, chapter 12, highlights the development of a desktop program. Nodejs is typically known for its web based applications, but in this chapter a more traditional desktop program to read files on the local computer is developed using node-webkit.


Overall I would rate the book 5 stars. I found the incremental approach to the code samples very easy to follow and although I did not build all the sample applications, those I did develop, I did so without errors.

As noted above the chapters on build and test, such a critical part of todays web development world, were very clearly explained and demonstrated. This made this book a very valuable resource in my development tool set and one I shall keep close by.

Publisher Link : Node.Js Blueprints
Profile Image for Pulak Bhattacharyya.
6 reviews1 follower
August 10, 2014
I am delighted to share my review comments of the book, ‘Node.js Blueprints’. Author of the book is Krasimir Tsonev who is a coder with over 10 years of experience in web development. I thank Packtpub publishing for the invitation to do the book review.

There are 12 chapters in the book which will guide you to develop stunning web and desktop applications with Node.js. This book’s target audience is intermediate developers. Book will teach you how to use popular Node.js libraries and frameworks. So having a good JavaScript knowledge is an added advantage.

Chapter 1, Common Programming Paradigms: Introduces us to the most common programming paradigms. Its starts with Node.js fundamentals like non-blocking I/O, evented loop. Further, it introduces readers to module definition and how modules created using module.exprots can communicate between themselves.

With the help of examples, we are introduced to asynchronous programming using callbacks and promises. There is a brief description of what promise is though it does not talk about Promises/A and Promises/A+ specifications.

To define and explain middleware architecture, we come to know about Connect. Connect is a framework that uses modular components called middleware for creating web application logic in a reusable manner. Simply put, middlewares are functions that handle request, responses and also can signal errors. As a reader I can expect more details about Connect as it is one of the important parts of Node.js arena.

Chapter 1, ends with the introduction of managing dependencies using Node Package Manager(npm) and Package.json.

Chapter 2, Developing a Basic Site with Node.js and Express: This chapter take us to the land of web application frameworks. The Express web framework is built on the top of Connect and it provides tools and structure that make writing web applications easier and faster. We learn the following items about Express:

1. Installing Express
 Using package.json
 Using a command-line tool

2. Managing routes
 Handling dynamic URLs and the HTMLforms
 Returning a response

Express examples are developed using Express 3.x and Jade as a template engine. The step-by-step simple examples guide us to develop application using Express. I feel the use of express-generator is very handy.

Chapter 2 could have thrown light on Express 4.x features and how a user can upgrade an application developed using Express 3.x to Express 4.x. Further, use of another template engine like EJS could have been an added bonus.

Chapter 3, Writing a Blog Application with Node.js and AngularJS: It has guided user well to develop a blog application using Angular, Node, Jade, MySQL and MongoDB. Author has beautifully explained the concepts of Angular. So if you are not familiar with it, you will learn it easily. MongoDB and MySQL version of the queries are easy to understand. Understanding these examples will definitely help you get started.

I could not understand the following paragraph in summary section:
“Node.js works well with AngularJS, mainly because both are written in JavaScript. We found out that AngularJS is built to support the developer. It removes all those boring tasks such as DOM element referencing, attaching event listeners, and so on. It's a great choice for the modern client-side coding stack.”

I believe, author could have given a better explanation of developing an AngularJS application with Node.js and why AngularJS is very good framework.

A complete review of this book can be found in my blog: http://pulakonline.com/
1 review
July 23, 2014
Learning Node.js will never be the same again.

The book doesn’t just teach you Node.js, it also gives you a deeper understanding of JavaScript objects.

The author first walks you through how to create your first Node.js application from scratch, and later proceeds to discussing about ExpressJS, a web application framework for Node.

It doesn’t stop there. Do you ever wonder how to create real-time chat clients for your webpages? That's right, the author tackles about Socket.IO in this book, too.

Determining where to start when creating a Node.js application has always been a problem. This book can surely help you as the author demonstrates how to write web applications with the help of AngularJS, Backbone.js and Ember.js. He also discussed how to use different templating engines such as Jade and Handlebars.

But what can a webpage do if it can’t handle data? You could also learn about the difference between MongoDB and MySQL databases. Lastly, CSS preprocessors such as Less, Stylus, Sass and AbsurdJS are also tackled in the book.

If you are writing JavaScript codes, you are also expected to write tests to make your webpage failproof and robust using TDD and BDD. But don’t worry which testing framework to use because the author talked about Jasmine, Mocha, Phantom and Dalek.

But why stop there when you can also create command line tools, and desktop applications using Node.js too?

As you can see, there are pros and cons to the many technologies available to you, you just need to follow your heart what to use. Remember, to each his own.
Profile Image for Theodore.
33 reviews5 followers
January 12, 2017
Node.JS Blueprints is addressed to people who know JavaScript and want to use it from the server side too.

The book starts with a chapter on some programming paradigms that are currently used on the Node.js land. Patterns such as inter-module communication or how the asynchronous nature of Node works.

The following chapters are mainly concerned with the most important libraries on the Node.js ecosystem. The first library the author chose to present us is Express (probably expected). We go through a basic site while learning Express. The author, along with every JS library, walks us through a tutorial with a sample web application. He continues with chapters on Angular and sample blog, socket.io and chat app, backbone and to-do app, ember and social feed app.

Apart from the above libraries there is material on automation, testing, dynamics CSS, REST API and Node.js desktop apps.

Suitable for those who want a start on Node.js and its ecosystem, Node.js Blueprints is a pretty good book. The author’s approach with example web apps on each library is very good. Every chapter is clear while after finishing it you have learned what you need to start and decide whether you want to dive further into.

Furthermore, the code of the book is available from Packt Publishing. Care, though, since there are some (understandable) errors.

Recommended!
21 reviews1 follower
August 8, 2014
Review - "Node.js Blueprints" - Krasimir Tsonev

Node has become really popular and this book will show you how this wonderful technology handles real use cases. The book is for intermediate level developers, so good knowledge of JavaScript is assumed.

We start by learning the most common programming paradigms in node, handling asynchronous code and writing modules. Then we move on to use Express to build a simple website. After that some serious coding starts and we explore different use cases. We build a blog app with Angular, a chat app with Socket.io, a todo app with Backbone and a social-feed with Ember. We also learn how to use nodejs as a command line tool. The book also covers developing a nice workflow with Grunt or Gulp and automate our testing infrastructure with it. There is also a chapter dedicated to REST. Lastly, we see how to develop desktop apps woth node-webkit.

This is a great book and covers a lot of different aspects of using node. It greatly enhances your knowledge about the scope and potential of node and should be a great motivator for start using node in a lot of innovative ways.

Get the book here: http://www.packtpub.com/web-developme...
Profile Image for Juzer Ali.
3 reviews
September 10, 2014
The book fares well on what it says. A guide for intermediate developers for creating web apps using node.js. I was slightly perplexed by the content of the book. The book has guide to creating web apps using Angular, Backbonejs, Socket.io, and Ember. Testing chapter mentions 3 frameworks; mocha, jasmine, and Dalekjs. Going by the title of the book, I feel the content should have been more about node.js and less about leading frameworks available for front end and testing. I personally wouldn't want to learn 4 different frameworks in a matter of few months. Treat the front end frameworks as extra content, the book is practical guide to creating web apps. If that is something you struggle to do, or find difficult and time consuming you will get plenty of help here.
Profile Image for Bill Jones.
72 reviews2 followers
July 28, 2014
Node.js Blueprints

This book delivered. Node.js is very powerful, yet without the counterparts like AJAX and various other web technologies it is really limited, this book did an exceptional job of putting all of the pieces together. I would say from beginner to advanced web developer you will pull something from this book and go ah.... that's how it works. I can see why Node became so popular, a lot of the monkey work is eliminated and processes that are repeated can be done quickly and efficiently, which is what we all strive for when writing web applications. I highly recommend this book!

Publisher Link: http://www.packtpub.com/nodejs-bluepr...
Displaying 1 - 8 of 8 reviews

Can't find what you're looking for?

Get help and learn more about the design.