You are previewing Test-Driven JavaScript Development.

Test-Driven JavaScript Development

Cover of Test-Driven JavaScript Development by Christian Johansen Published by Addison-Wesley Professional
O'Reilly logo

Chapter 14. Server-Side JavaScript with Node.js

Netscape pushed JavaScript on the server way back in 1996. Since then, several others have tried to do the same, yet none of these projects have made a big impact on the developer community. That is, until 2009, when Ryan Dahl released the Node.js runtime. At the same time, CommonJS, an attempt at a standard library specification for JavaScript, is rapidly gaining attention and involvement from several server-side JavaScript library authors and users alike. Server-side JavaScript is happening, and it’s going to be big.

In this chapter we will use test-driven development to develop a small server-side application using Node. Through this exercise we’ll get to know Node and its conventions, work ...

The best content for your career. Discover unlimited learning on demand for around $1/day.