Part 2:
- Install and setup mongoose.
- Create Mongoose scheme for blog article model.
- Replace "console logs"/stubs from part 1 to real communication with database.
- Find all blogs
- Find blog by ID
- Insert blog
- Update blog record
- Delete blog from DB
- Implement error handling middleware (examples here) which will send an error without stack trace to client.
*Advanced: Describe mongoose scheme for User model. Implement user registration, add authorization and authentication using http://www.passportjs.org/ (any strategy) for accessing blog article.