O'Reilly logo

CoffeeScript Programming with jQuery, Rails, and Node.js by Michael Erasmus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Express

As you can see, Node out of the box is very low-level and bare-boned. Building web applications basically means writing a raw HTTP server. Luckily, a bunch of libraries has been developed over the last few years to help out with writing web applications on Node and to abstract away a lot of the low-level details.

Arguably, the most popular of these is Express (http://expressjs.com/). Similar to Rails, it has quite a lot of nice features that make it easier to perform common web application tasks, such as routing, rendering views, and hosting static resources.

In this chapter, we'll be writing a web application in Express using CoffeeScript.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required