Chapter 7Web Apps

By now, you’ve mastered several approaches to handling asynchronous JavaScript code. You know how to use and write RESTful web services. You understand messaging patterns, and how to use Express.

With all of that knowledge and experience, we’re now in position to develop a web application. This will take us through the following Node.js aspects:

Architecture and Core

At this stage you’ve moved past the Node.js core in many respects. Node is the underlying technology that’s letting you reach beyond.

Patterns

You’ll dive deeper into Express middleware, using it to implement a custom authentication handler. We’ll use passport—an Express plug-in—so that users of our application can log in with their Google accounts. ...

Get Node.js the Right Way 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.