Mongoose provides a powerful tool set for structuring large, hierarchical JSON documents and storing / retrieving them from MongoDB. There are times, however, when that large structure becomes copy & paste code between various parts, and between various document collections. To combat this, and to help keep code clean, consistent and reusable, Mongoose provides a […]
In the previous episode, I showed you how to use JSHint to create a consistent and clean code base, while avoiding many of the most common syntax and formatting mistakes, you should be using JSHint (or another linting tool). While JSHint and other linting tools are great, it gets to be rather annoying when you have to constantly re-run the linting process manually.