Chapter 7. The web server

This chapter covers
  • The role of the web server when supporting an SPA
  • Using JavaScript as the web server language with Node.js
  • Using Connect middleware
  • Using the Express framework
  • Configuring Express to support an SPA architecture
  • Routing and CRUD
  • Messaging using Socket.IO and why we care

This chapter discusses the logic and code a server needs to support an SPA. It also provides a good introduction to Node.js. If after reading this chapter you’re really excited and want to build out a fully production-ready application using Node.js, we suggest checking out the book Node.js in Action (Manning 2013).

7.1. The role of the server

An SPA moves much of the business logic found on the server in ...

Get Single Page Web Applications now with O’Reilly online learning.

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