Chapter 7. The web server
- The role of the web server when supporting an SPA
- 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 ...