CHAPTER 12

image

The Express Framework

In Chapter 10, you learned how to create low-level TCP applications using the net module. Then, in Chapter 11, the low-level details of TCP were abstracted away using the http module. The move to a higher level of abstraction allowed us to do more, while writing less code. Chapter 11 also introduced the concept of middleware via the Connect library. Middleware promotes code reuse and enables you to request processing in an assembly line fashion. However, creating complex applications using the http and connect modules can still be a bit tedious.

The Express framework, created by TJ Holowaychuk, provides another ...

Get Pro Node.js for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.