Setting up Mongoose

We're not going to need any of the files we currently have open in the playground directory, so we can go ahead and close them. We're also going to wipe the TodoApp database using Robomongo. The data inside of Robomongo is going to be a little different than the data we'll be using going forward, and it's best to start with a clean slate. There is no need to create the database after you drop it because if you remember, MongoDB is going to automatically create the database once you start writing data to it. With this in place, we can now explore Mongoose, and the first thing I always like to do is check out the website.

You can check the website out by going to mongoosejs.com:

Here, you can find examples, guides, a full ...

Get Advanced Node.js Development 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.