Chapter 9. Advanced Express
This chapter covers
- Implementing authentication
- URL routing
- Creating a REST API
- Handling errors
In this chapter, you’ll learn a number of advanced Express techniques that will enable you to take more advantage of the framework’s functionality.
To demonstrate these techniques, you’ll create a simple application that allows people to register and post public messages that are displayed, in reverse chronological order, for visitors to see. This type of application is known as a “shoutbox” application. Figure 9.1 shows the front and user registration pages. Figure 9.2 shows the login and post pages.
Figure 9.1. The front and registration pages of the shoutbox application
Figure 9.2. The login and post pages ...
Get Node.js in Action 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.