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
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