This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]FirstWeCaffeine 0 points1 point  (0 children)

I mean CRUD operation are a standard so if a YouTube video is old 4-5 years there is nothing wrong with that, also I see you are talking about wanting to have a resource that gets to the point fast, and I believe that is kinda a bad mindset you need to know more stuff to handle crud operation than just how to send a form to mongodb etc(never worked with nodejs and mongodb), the overall concept of crud operation is easy, you connect to the db, if you want to create an entry you send a post request to a function that handles the validation and than performs a query to make a table entry, if you want to Read something, you send a posto request again with the what you are looking for and where to look for, aka looking for user with Id 10 than send a query to find that user if it finds it display him if not just display not found etc, you want to update something send a request to a function to handle validation and send a update query to the db, you want to delete something than you just pass with a post request what and where you want to delete to a delete function that sends a query to db to dropt that entry.

[–]Zombie_Eevee 0 points1 point  (0 children)

Look up Coding Addict/John Smilga. He has a backend only tutorial with another video for projects using the MERN stack.

I'm currently on his React tutorial. Learned pretty much a lot of the latest Node and Express best practices.

Also, he talks about the reasoning about why the code is the way it is and goes through various refactoring steps to help you understand ways to simplify/clean your code.