Skip to content

OlgaPoddubko/Blog_2_NodeMongoose

Repository files navigation

Blog_2_NodeMongoose

Part 2:

  1. Install and setup mongoose.
  2. Create Mongoose scheme for blog article model.
  3. 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
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published