Summary
In this chapter, we learned about the many uses of Express, including how to create a basic server, how to add routes, how to add static files, and how to use templates.
Additionally, we learned how the middleware pattern works and how we can create our own middleware and use it at different levels in our application. We also checked out some third-party middleware including body-parser
.
In the next chapter, we will learn how to use a super test to test our first API in depth. We will cover how to test the routes and the stores and will create a solid API that we will develop in the coming chapters.