O'Reilly logo

Node.js in Action by Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich

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

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