Server Side Airport Autocomplete Using NodeJS

This post shows how to enable autocomplete on a web form that consumes a JSON api running on nodeJS.

Example

Source

Read on →

Multi-color Heat Map in JavaScript

While working on my flight grid site, I was looking for a way to add a multi-color heat map.

I found the following example, but for just one color.

I modified it to work for two colors as shown below (warning messy code!):

Read on →

Using Sinon Spys With Meteor Collections

Following my testing described here, I wanted to verify that Meteor interacts with my Routers correctly.

Read on →

Testing With Meteor, CoffeeScript and Mocha

Despite no mention in the official Meteor docs, adding unit tests is fairly easy. For some reason, they don’t mention this but any files in the tests/ folder will be ignored by the Meteor server.

Read on →

Testing Backbone Routers in Meteor With Mocha

One of the downsides of Meteor and perhaps strongest complaint is that it doesn’t play nicely with existing NodeJS modules. You’re forced to use the available SmartPackages (or build one). This is a problem since the Mocha environment runs without the browser and doesn’t have access to the libraries included by the SmartPackage.

Read on →