Refactor and Deployment CRUD API with Node.js, Express and MongoDB for Beginner – MVC in Node.js



Refactor and Deployment CRUD API with Node.js, Express and MongoDB for Beginner – MVC in Node.js

Refactor and Deployment CRUD API with Node.js, Express and MongoDB for Beginner - MVC in Node.js

Are you looking for a video tutorial to improve your Node.js API source code and improve skill your Node.js skill? in this video, I’m going to show you how to refactor Node.js code to make it more organized and cleaner . You will learn how to implement dotenv, create a custom middleware to handle an error, implement a MVC architecture, solve cors problems and deployment the Node.js project into a live server from Render.com. I will show you everything step-by-step, so you will understand it easily.

This video continues from “Build Restful CRUD API with Node.js, Express and MongoDB in 45 minutes for Beginners from Scratch”. Here is the link if you want to check it out https://youtu.be/9OfL9H6AmhQ

★★★ Timeline ★★★
00:05 – Review the project and the previous video tutorial
01:10 – Create dotenv
04:50 – Refactor to the MVC pattern focusing on routes
11:27 – Refactor to the MVC pattern focusing on controllers
20:35 – Implement ErrorMiddleware
28:15 – Implement express-async-handler
33:26 – Implement Cors
37:26 – Configure Cors to support multiple domains
40:16 – Deploy Node.js to Github and Render
44:21- Create and Configure a webservice in Render
47:18- Update backend URL in a React frontend app

★★★ Source Code ★★★
Started Code – https://github.com/devtamin/Node-API
Finished Code – https://github.com/devtamin/Node-API-V2
Frontend Code (React.js) – https://github.com/devtamin/React-For-Node-API

★★★ Follow Me ★★★
Facebook Fanpage: https://www.facebook.com/devtamin
Youtube: https://www.youtube.com/c/Devtamin
Medium: https://medium.com/@devtamin
My website: https://www.devtamin.com/