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

Опубликовано: 03 Декабрь 2020
на канале: 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


Смотрите видео Implementing pre-save mongoose hooks: Building a microservices-based NodeJS and React app онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Lauro Müller 03 Декабрь 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,450 раз и оно понравилось 25 посетителям.