Category Archives: Node.js

Book Review: CoffeeScript Programming with jQuery, Rails, and Node.js

Today I’m going to review the ebook version of CoffeeScript Programming with jQuery, Rails, and Node.js authored by Michael Erasmus and published my Packtpub.

Posted in CoffeeScript, JavaScript, Node.js, Open Source, Rails, Reviews | Comments Off on Book Review: CoffeeScript Programming with jQuery, Rails, and Node.js

Tutorial: Embedded JavaScript templates (EJS) and Node.js

There are several ways to create web applications with Node.js. One popular way is to use Jade. Today, I’ll show you how to use EJS (Embedded JavaScript templates) with Node.js to create a simple web application. If you’ve used PHP … Continue reading

Posted in JavaScript, Node.js, Open Source | 4 Comments

An easy tutorial on using callbacks in Node.js

In a previous post I showed you how to use the EventEmitter to give a notification when a webpage had been downloaded (or ran into an error). Today I’ll show you the same project but using a callback instead.

Posted in JavaScript, Node.js, Open Source | Comments Off on An easy tutorial on using callbacks in Node.js

A quick guide to JavaScript classes and inheritance

Today I’m going to go over how to create classes in JavaScript and how to work with inheritance. The first thing to confess is that JavaScript doesn’t actually have classes (please keep this in mind as I mention class in … Continue reading

Posted in JavaScript, Node.js | Comments Off on A quick guide to JavaScript classes and inheritance

Working with Events in Node.js using EventEmitter

The EventEmitter class in Node.js is pretty easy to work with when it comes to triggering custom events in your projects. Today I’m going to show you a simple demo project to fetch the contents of a website and then … Continue reading

Posted in JavaScript, Node.js, Open Source | 1 Comment

Performing content-negotiation with Express 3 and Node.js (examples in CoffeeScript and JavaScript)

Express version 3 introduces a nice feature that performs content-negotiation on the request accept header field when present. This makes it easy to respond to a client request with the requested format. In this article I’ll show you how to … Continue reading

Posted in JavaScript, Node.js | 1 Comment

The 2 minute guide to creating a new module in CoffeeScript for Node.js

Using modules in Node.js is an everyday task for most Node programmers. Today I’ll show you how to quickly create a class using CoffeeScript and to make it exportable into a Node.js project.

Posted in CoffeeScript, JavaScript, Node.js, Open Source | Comments Off on The 2 minute guide to creating a new module in CoffeeScript for Node.js

Working with JQuery, AJAX, CoffeeScript and Node.js

I often get asked how to get Node.js working with JQuery and AJAX. Of course you can always use something like Socket.IO for realtime, but sometimes you might be dealing with older browsers that don’t support WebSockets and AJAX might … Continue reading

Posted in AJAX, CoffeeScript, JavaScript, Node.js, Open Source | Comments Off on Working with JQuery, AJAX, CoffeeScript and Node.js

Installing Node.js on Ubuntu 12.04 LTS with Rackspace’s new control panel using OpenStack

I recently signed up for Rackspace’s next generation Cloud Servers powered by OpenStack. The new control panel is clean, easy to use, and it gives live feedback as your servers are being built, creating an image, changing the root password, … Continue reading

Posted in Node.js, Open Source, OpenStack, Ubuntu | Comments Off on Installing Node.js on Ubuntu 12.04 LTS with Rackspace’s new control panel using OpenStack

20 Node.js projects that you should know about to increase productivity

Node.js continues to grow through a very active community. Like all other technologies it has its own share of detractors and promoters. Today I want to point out 20 projects that work with Node.js and can help increase your productivity.

Posted in Node.js | 4 Comments