adds code


Learn how to apply middleware to a MERN Stack Project. The backend of a MERN Stack Project is a Node.js & Express REST API. In this tutorial, we'll apply built-in middleware, custom middleware and 3rd party middleware. 🚩 Subscribe ➜ https://bit.ly/3nGHmNn πŸ“¬ Course Updates ➜ https://bit.ly/3q2FKjt πŸš€ Discord ➜ https://discord.gg/neKghyefqh ☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray πŸ‘‡ Follow Me On Social Media: Github: https://github.com/gitdagray Twitter: https://twitter.com/yesdavidgray LinkedIn: https://www.linkedin.com/in/davidagray/ πŸ”— All Resources for this MERN Stack Project: https://github.com/gitdagray/mern_stack_course Middleware in a MERN Stack Project | REST API Tutorial (00:00) Intro (00:11) Welcome (00:20) What is Middleware? (00:48) Quick Corrections & Starter Code (01:56) Built-in Middleware (04:00) Custom Log Middleware (14:03) Custom Error Handler Middleware (16:56) cookie-parser 3rd party middleware (18:10) Understanding CORS (19:32) Setting up CORS middleware (21:02) Securing CORS for our MERN Stack Project πŸ“š Suggested Pre-requisites for this MERN course: πŸ”— Node.js for Beginners full course: https://youtu.be/f2EqECiTBL8 πŸ”— React JS for Beginners full course: https://youtu.be/RVFAyFWO4go πŸ”— Redux Toolkit for Beginners full course: https://youtu.be/NqzdVN2tyvQ πŸ”— React Login Playlist: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6PRCpm9clX0WiBEMB70FWwd πŸ“š Tutorial References: πŸ”— Express.js middleware: http://expressjs.com/en/guide/using-middleware.html#using-middleware πŸ”— date-fns: https://www.npmjs.com/package/date-fns πŸ”— uuid: https://www.npmjs.com/package/uuid πŸ”— cookie-parser middleware: https://www.npmjs.com/package/cookie-parser πŸ”— CORS middleware: https://www.npmjs.com/package/cors Was this MERN Stack middleware tutorial helpful? If so, please share. Let me know your thoughts in the comments. #mern #stack #middleware
Previous Post Next Post