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

Chapter 5. CoffeeScript and Node.js

Ryan Dahl created Node.js in 2009. His goal was to create a system with which one can write network server applications having high performance, using JavaScript. At that time, JavaScript was mostly run inside browsers, so a server-side framework needed some way to run JavaScript without it. Node uses Google's V8 JavaScript engine, originally written for the Chrome browser, but since it's a separate piece of software, it can run JavaScript code anywhere. Node.js lets you write JavaScript code that can be executed on the server. It can make full use of your operating system, databases, and other external network resources.

Let's talk about some of the features of Node.js.

Node is event-driven

The Node.js framework ...

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