Implementing pre-save mongoose hooks: Building a microservices-based NodeJS and React app

Published: 03 December 2020
on channel: Lauro Müller
2,450
25

Link to coupons with BIG DISCOUNTS 🤯 :
👉 Mastering Terraform: From Beginner to Expert - https://www.lauromueller.com/courses/...
👉 Mastering GitHub Actions: From Beginner to Expert - https://www.lauromueller.com/courses/...
👉 Write better code: 20 code smells and how to get rid of them - https://www.lauromueller.com/courses/...

Do you want to bring your dev skills to the next level? Then check out the links with BIG DISCOUNTS to my courses on Udemy! Purchasing the courses is a great way to support this channel and the content I produce, while also getting something amazing in return, so head there right now! I am looking forward to seeing you there and receiving your feedback on the course!

The courses also have a 30-day money-back guarantee, so if you are not satisfied with the purchase, you can ask for a refund, no questions asked.

***

Hello everyone!

In this video, we perform some refactoring of the tests and of our code to develop a more solid business logic around handling duplicated user emails. We use mongoose's pre-save hook functionality to prevent, at the model level, users with duplicated emails in our database.

GitHub repo for the project: https://github.com/lauromueller/unsoc...
Git commit for this video: https://github.com/lauromueller/unsoc...

This video is part of a series where we are developing a microservices-based social media application with the main focus on learning the microservices pattern. We are using NodeJS for our backend services, and React for our frontend client.

Important links
Want to support this project?   / lauromueller  
My LinkedIn profile:   / lauromueller  

Some other playlists that may interest you :)
Typescript by example: https://bit.ly/typescript-by-example


Watch video Implementing pre-save mongoose hooks: Building a microservices-based NodeJS and React app online, duration hours minute second in high quality that is uploaded to the channel Lauro Müller 03 December 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,450 times and liked it 25 visitors.