O'Reilly logo

CoffeeScript Application Development by Ian Young

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 11. CoffeeScript on the Server

Until now, almost all our CoffeeScript code has been written to run in a browser. Our web application is a fully client-side system backed by static content. This has worked well for us so far, but it's time for bigger and better things. We're going to venture onto the server and learn how to run CoffeeScript code in Node.js. We'll take this opportunity to turn our web application into a dynamic system that can respond to user input.

We will:

  • Convert our Node application to CoffeeScript
  • Give our server some additional responsibility for handling data
  • Use a simple database to make our application dynamic
  • Encapsulate common development tasks with an easy command-running tool

Running a server with CoffeeScript

In ...

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