O'Reilly logo

CoffeeScript Application Development Cookbook by Mike Hatfield

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

Creating RESTful web services

In this collection of recipes, we will create a simple HTTP server using Node and a popular web application called express. Express is a Node package used to create small web applications. It provides support to map HTTP verbs to URL paths, which makes it ideal to set up a quick HTTP server to host an API.

In this section, we will look at managing our application's dependencies as well as building a simple HTTP server and a web API using express.

Managing dependencies with package.json

Nearly all but the extremely simple applications will require one or more external dependencies. Typically, these are NPM modules. In this section, we will look at using a package configuration file. This allows us to configure or project ...

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