In this video we work on error handling to both avoid a catastrophic server crash and also to handle any errors that may occur with a particular end point in a custom way. We also look at logging both with Morgan and custom error logging. Finally, we have a quick look at validation. Error handling, logging, and validation combined is a best practice to ensure the server is running as expected and also provide important insights.

GitHub: https://github.com/Jon-Peppinck/linkedin-clone

#nest #node #webdev

NestJS Best Practices: Error Handling, Logging and Data Validation
9.05 GEEK