Chapter 13Using Express in Our App

This chapter revisits the example Human Resources application that was started in Chapter 6 and continued in Chapter 9. Up to this point, we've created a Node application that communicates with a MongoDB store. We used Node's http module to write a custom implementation for a router. Now that we have the more powerful Express router at our disposal, we're going to replace our http code.

If we were starting a new application from scratch, we would likely want to use a scaffolding generator, such as Yeoman (which has a MEAN stack generator); however, since we're updating our existing application, we're going to modify everything by hand.

Updates to package.json

The first step in our migration to Express is to ...

Get Full Stack JavaScript Development With MEAN 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.