➡️ Subscribe here: https://bit.ly/3v8Mdje Learn how to safeguard your Node.js and Express REST API's by validating incoming HTTP requests. In this tutorial I will show you how to use a powerful NPM package to filter out unwanted data. Welcome to @devshackcodingacademy your channel for learning valuable tech skills that help you grow your career, build the applications you envision and become indispensable in a digital age. 🔔 Subscribe now: Click here to stay updated on the latest tutorials and grow your tech skills! https://bit.ly/3v8Mdje 🎬 Watch next: Validating Username and Passwords in Express: https://youtu.be/xb2ieI0VN3E?si=NbwoFXy26vd4H9ug Playlist: Node.js + Passport - Local Auth Strategy: https://youtube.com/playlist?list=PLUUOvUPrFYcjel-IKiAQY4coJJ9EUjfcP&si=gHKdTJwcK20C-Iho 🗓 I release new videos every every week, so be sure to subscribe and tune in. Thanks for watching! 0:00 - Intro 0:16 - Installing our dependencies 0:28 - Adjusting NPM scripts to use nodemon 0:42 - Implementing the express server code 1:45 - Creating a POST request handler 2:35 - Testing our POST request handler with cURL 3:16 - Request handler validation explanation 3:53 - Installing validate.js 4:25 - Implementing validate.single method 6:02 - Inspecting the validate.single output 6:29 - Adding a custom error message 6:54 - Using conditional logic to return a 400 bad request error 7:43 - Lesson conclusion
➡️ Subscribe here: https://bit.ly/3v8Mdje Learn how to safeguard your Node.js and Express REST API's by validating incoming HTTP requests. In this tutorial I will show you how to use a powerful NPM package to filter out unwanted data. Welcome to @devshackcodingacademy your channel for learning valuable tech skills that help you grow your career, build the applications you envision and become indispensable in a digital age. 🔔 Subscribe now: Click here to stay updated on the latest tutorials and grow your tech skills! https://bit.ly/3v8Mdje 🎬 Watch next: Validating Username and Passwords in Express: https://youtu.be/xb2ieI0VN3E?si=NbwoFXy26vd4H9ug Playlist: Node.js + Passport - Local Auth Strategy: https://youtube.com/playlist?list=PLUUOvUPrFYcjel-IKiAQY4coJJ9EUjfcP&si=gHKdTJwcK20C-Iho 🗓 I release new videos every every week, so be sure to subscribe and tune in. Thanks for watching! 0:00 - Intro 0:16 - Installing our dependencies 0:28 - Adjusting NPM scripts to use nodemon 0:42 - Implementing the express server code 1:45 - Creating a POST request handler 2:35 - Testing our POST request handler with cURL 3:16 - Request handler validation explanation 3:53 - Installing validate.js 4:25 - Implementing validate.single method 6:02 - Inspecting the validate.single output 6:29 - Adding a custom error message 6:54 - Using conditional logic to return a 400 bad request error 7:43 - Lesson conclusion