I was going to develop an API in CoffeeScript and Restify the other day, when I realised there was no boilerplate for it anywhere I looked.

Although there are many templates out there (1, 2), these are typically built on Express and/or pure JavaScript.

I prefer Restify over Express however, as this framework is specialised in building API services. Furthermore I love CoffeeScript because it just makes me more productive.

Without further ado, the new boilerplate is available below.

Grab the Code

node-restify-coffee-boilerplate API Boilerplate in Restify and CoffeeScript

Highlights

Built on Restify and CoffeeScript

Clean separation of features

API is documented with API Blueprint

Input validation

Unit and end-to-end testing

Logging and exception handling

Heroku ready

Pull Requests are Welcome

Not in the Urban Dictionary way

Image courtesy of Boemski