Creating the DuplicatedEmail custom error: Building a microservices-based NodeJS and React app

Опубликовано: 15 Октябрь 2024
на канале: Lauro Müller
184
5

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 migrate from using a generic error in our mongoose model to having a clear custom error indicating that we do not accept duplicated emails in our database. We use the integrated mongoose and mongodb in our test suite to thoroughly test our custom classes.

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