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 list of plugins, and a ton of great resources. The read the docs
resource is the one I use the most. It includes tutorial-like guides that have examples, as well as documentation covering every single feature of the library. It really is a fantastic resource...