Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

MERN API Controllers & Routers are a necessary part of the backend logic in a MERN Stack Project. In this tutorial, we'll apply routing for CRUD ops to various HTTP methods and MERN controller methods.

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- Advanced React & Redux: https://bit.ly/AdvReactDev
- The Complete Node.js Developer: https://bit.ly/CompleteNodeJS
- Jr to Senior Web Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

Subscribe https://bit.ly/3nGHmNn

Course Updates https://courses.davegray.codes/

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

Playlist for this MERN Stack Project Series: https://bit.ly/3Sn4EaI

MERN API Controllers & Routers | MERN Stack Project

(00:00) Intro
(00:15) Welcome
(00:26) Starter Code
(01:05) Route user data requests
(03:42) Create the users controller
(09:34) Add controller methods to the user routes
(10:54) getAllUsers controller method
(13:05) createNewUser controller method
(19:25) updateUser controller method
(25:31) deleteUser controller method
(28:56) Install Postman
(29:29) Testing controller methods with Postman
(42:33) Student Challenge

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:
MongooseJS: https://mongoosejs.com/
express-async-handler: https://www.npmjs.com/package/express-async-handler
bcrypt: https://www.npmjs.com/package/bcrypt

Was this MERN Stack API Controllers & Routers tutorial helpful? If so, please share. Let me know your thoughts in the comments.

#mern #stack #api