Chapter 9Using MongoDB and Mongoose in Our Sample App

In Chapter 6, we began work on our example human resources application. At the time, Node was unfortunately the only technology that had been introduced, so the application in Chapter 6 only consisted of a Node HTTP server returning hard-coded employee data from a JSON file. Now that we have a good understanding of MongoDB and the Mongoose module, we can update the example application to use a database.

This chapter will build on the server from Chapter 6. We’re going to assume that you have the example application code on your local machine already. We’ll also assume that you have run npm install, and can successfully connect to the server using a browser. For example, you should be able ...

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.