Free Sample
+ Collection

Node.js Blueprints

Krasimir Tsonev

Develop stunning web and desktop applications with the definitive Node.js
RRP $32.99
RRP $54.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783287338
Paperback268 pages

About This Book

  • Utilize libraries and frameworks to develop real-world applications using Node.js
  • Explore Node.js compatibility with AngularJS,, BackboneJS, EmberJS, and GruntJS
  • Step-by-step tutorials that will help you to utilize the enormous capabilities of Node.js

Who This Book Is For

If you are a web developer with experience in writing client-side JavaScript and want to discover the fascinating world of Node.js to develop fast and effi cient web and desktop applications, then this book is for you.

Table of Contents

Chapter 1: Common Programming Paradigms
Node.js fundamentals
Organizing your code logic in modules
Understanding inter-module communication
Asynchronous programming
Exploring middleware architecture
Composition versus inheritance
Managing dependencies
Chapter 2: Developing a Basic Site with Node.js and Express
Getting acquainted with Express
Installing Express
Managing routes
Handling dynamic URLs and the HTML forms
Returning a response
The example-logging system
Chapter 3: Writing a Blog Application with Node.js and AngularJS
Exploring AngularJS
Selecting and initializing the database
Developing the client side with Angular
Implementing a control panel
Chapter 4: Developing a Chat with Socket.IO
Exploring WebSockets and Socket.IO
Understanding the basic application structure
Running the server
Adding Socket.IO
Writing the client side of the chat
Implementing user-to-user communication
Chapter 5: Creating a To-do Application with Backbone.js
Exploring the Backbone.js framework
Writing the backend of the application
Writing the frontend
Chapter 6: Using Node.js as a Command-line Tool
Exploring the required modules
Planning the application
Obtaining images from a folder
Authorizing the Flickr protocol
Uploading the images
Chapter 7: Showing a Social Feed with Ember.js
Preparing the application
Running the server and delivering the assets
Getting tweets based on a user handle
Discovering Ember.js
Understanding Ember.js
Writing Ember.js
Defining the routes
Handling the user input and moving to the second screen
Displaying the tweets
Chapter 8: Developing Web App Workflow with Grunt and Gulp
Introducing the task runners
Exploring Grunt
Discovering Gulp
Chapter 9: Automate Your Testing with Node.js
Understanding the importance of writing tests
Choosing a testing methodology
Classifying tests
Using Jasmine
Testing with Mocha
Testing with a headless browser
Testing with DalekJS
Chapter 10: Writing Flexible and Modular CSS
Writing modular CSS
Exploring CSS preprocessors
Styling a simple login form
Chapter 11: Writing a REST API
Discovering REST and API
Developing an online library – a REST API
Working with the database
Testing the API
Chapter 12: Developing Desktop Apps with Node.js
Using node-webkit
Writing the base of the application
Displaying and using the working directory
Extending the application

What You Will Learn

  • Explore design patterns in Node.js
  • Build solid architectures by following test-driven development
  • Look beyond web applications and create your own desktop app with Node.js
  • Develop single page applications using Node.js with AngularJS, Ember.js, and Backbone.js
  • Master the Express framework and build a complete site with a real database
  • Create a real-time and fully functional online chat application with Socket.IO
  • Utilize the enormous range of Grunt and Gulp plugins

In Detail

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.


Read More