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 ...

Get CoffeeScript Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.