Chapter 3. What is a Node web application?

This chapter covers

  • Creating a new web application
  • Building RESTful services
  • Persisting data
  • Working with templates

This chapter is all about Node web applications. After reading this chapter, you’ll understand what Node web applications look like and how to start building them. You’ll do everything a modern web developer does when building an application.

You’re going to build a web application called later that’s inspired by popular read-it-later websites such as Instapaper ( and Pocket ( This involves starting a new Node project, managing dependencies, creating a RESTful API, saving data to a database, and making an interface with templates. That might sound ...

Get Node.js in Action, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.