O'Reilly logo

Single Page Web Applications: JavaScript end-to-end by Michael S. Mikowski and Josh C. Powell

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

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