Build a REST API with Node JS and Express | CRUD API Tutorial

  Рет қаралды 519,818

JavaScript Mastery

JavaScript Mastery

4 жыл бұрын

In this video, you'll learn everything you need to know about creating a simple API using Node and Express.
📧 Join our JavaScript Mastery's Newsletter on Web Development, JavaScript & React to get exclusive programming guides, tips & tricks, and entire e-books: resource.jsmastery.pro/newsle...
There’s a high chance you came across the term REST API if you’ve thought about getting data from a source on the internet, such as Facebook or Github. But what is a REST API? And more importantly, how can you build one. There are some more often used terms and technologies when building APIs such as Express, Node, Postman, and a CRUD API.
I'm here to show you how all of that works in practice so that you can build your own APIs. Let's dive right in!
📚 Materials/References:
github.com/adrianhajdin/node_...
⭐Hostinger is my personal recommendation for hosting - www.hostinger.com/javascriptm...
Use the code JAVASCRIPTMASTERY to save up to 91% on all yearly hosting plans.
💼 Business Inquiries: contact@jsmastery.pro
🌎 Find Me Here:
Discord Group: / discord
Instagram: / javascriptmastery
Twitter: / js_mastery
BuyMeACoffe: www.buymeacoffee.com/JSMastery

Пікірлер: 692
@javascriptmastery
@javascriptmastery 3 жыл бұрын
JavaScript Mastery PRO launching soon! Be the first one to find out about it - javascriptmastery.eo.page 🔥
@LindaLinda-ls2fd
@LindaLinda-ls2fd 2 жыл бұрын
Please help. Why is bodyParser automatically struck out when I type it in in Line 7 and the message says "bodyparser is deprecated."?????
@bhaveshchaudhari693
@bhaveshchaudhari693 2 жыл бұрын
​@@LindaLinda-ls2fd after version 4.16.0 bodyParser is deprecated and you can use express.json() instead of bodyParser.json() now... this is the official statement "The express.json() and express.urlencoded() middleware have been added to provide request body parsing support out-of-the-box. This uses the expressjs/body-parser module underneath, so apps that are currently requiring the module separately can switch to the built-in parsers."
@LindaLinda-ls2fd
@LindaLinda-ls2fd 2 жыл бұрын
@@bhaveshchaudhari693 Thank you so much for replying (I really appreciate it) - I am not tech savvy so I will just use the version he is using so I don't run into any more issues.
@DmitriyMalayevProfile
@DmitriyMalayevProfile 2 жыл бұрын
Hello Adrian, Nice to meet you. Thanks for making an amazing youtube series. I am completely stuck on something in one of your videos. router.get("/", (req, res) => { console.log(users); //In the video you get this output in the browser, I get it in the vs code. res.send("Hello"); //I get this in the browser. }); No idea why. Your input would be very much appreciated. Thanks. kzfaq.info/get/bejne/op6Hg7p8ntO3ZYE.html
@hexadecimalhexadecimal5241
@hexadecimalhexadecimal5241 2 жыл бұрын
@@DmitriyMalayevProfile i know same dude wtf...like browser just doesnt read the JSON no matter what. and in console when you type JSON is says {Symbol(Symbol.toStringtag): 'JSON', parse: f,stringify: f} someting like that, which a google search takes you nowhere....
@jarodday1299
@jarodday1299 2 жыл бұрын
By far the best tutorial I have or ever will see relating to API's. Clear, concise, to the point, not loaded with anything unnecessary, and explains everything. I understand APIs that much more because of this video. Thank you for your contribution to us learning web development my guy THIS IS THE CORRECT TUTORIAL TO WATCH
@shargeforce
@shargeforce 4 жыл бұрын
Just here to vote for the MongoDB tutorial. I hope my comment helps the algorithm. Great video.
@javascriptmastery
@javascriptmastery 4 жыл бұрын
Thanks, coming soon!
@alexander_stahl
@alexander_stahl 2 жыл бұрын
Would be really great!
@rohith2714
@rohith2714 2 жыл бұрын
If thr mongo db tutorial is done , can u please share the link here ..🙏
@soichirojin7146
@soichirojin7146 2 жыл бұрын
@@javascriptmastery Waiting for MongoDB as a continuation part of this tutorial :)
@samnayakawadi
@samnayakawadi Жыл бұрын
I want to take a minute & appreciate the quality knowledge he has delivered to the world. I have seen many videos on Rest APIs with NodeJS, But this is just outstanding. The English pronunciation was so clear that any non-native person can understand it. The flow of the video was in such a way that, I was understanding what is happening throughout the video. And one more thing - I started this video at 12 AM & It's 1:15 AM now. I didn't know how the time went by. What a great mentor. Looking forward to seeing such great content for all my javascript needs. Subscribed.😀
@surajmallick7999
@surajmallick7999 Жыл бұрын
jara sun na tune users array ko console.log kiya tera array object dikhaya kya chrome bcz it needs res.send( ) to work it dosent shows on my browser
@farrukhatabekov595
@farrukhatabekov595 4 жыл бұрын
Your content is really clear and on point without needless talk or explanations. I had learnt tons from your react project building Corona -tracker.This express API is video was also something I was looking for. I would really appreciate if you make another video on interacting with MongoDB database. Thanks.
@shujanaqvi7007
@shujanaqvi7007 2 жыл бұрын
If you found it then let me know please!
@deeh2945
@deeh2945 2 жыл бұрын
This is so far the best Web dev channel I've found. Great stuff, and you're really good at explaining things.
@subhadipkhawas5085
@subhadipkhawas5085 Жыл бұрын
hats-off to this man's patience level, explaining each and everything with clear English pronunciation. Thank you so much
@hilton9304
@hilton9304 2 жыл бұрын
Has been, I think, 2 or 3 weeks ago that I started to learn node.js and express and I could followed along with your tutorial. Well explained, and one thing I noticed in the beginning it's that you typed the parameter or something you would do but secs later you delete it explaining why. It's a awesome thing to do 'cause I watched and did at the same time and that really got into my thinking process. Thanks for sharing this class with all of us !! Peace !
@nileshsaini09
@nileshsaini09 2 жыл бұрын
After watching so many tutorials on building APIs, I have to say that this is the best video. Simple app, no unnecessary packages and to the point explanation of each and every line of code. Going to share this video and recommend it to my friends!!! Thank you for making this!
@melanieprevot4926
@melanieprevot4926 Жыл бұрын
Just finished coding along with this video. I need say that this is fantastic. The way you explained is definitely clear, into details and easy to understand for beginners ! Thank you so much Sir !
@kavita2491
@kavita2491 2 жыл бұрын
Hello @Javascript Mastery...I was looking for REST API and I found your channel. The way you have explained the content kept me going on. I completed the entire video with enough understanding and it made my day giving me the required momentum to complete the assignments. Thank you for your time and efforts of putting forth the content in simple and concise manner. Looking forward for more videos including MongoDB.You rock 👍
@Justin_Min_001
@Justin_Min_001 4 жыл бұрын
Simple and easy to follow but powerful tutorial. I loved it. Thank you!
@JaganMohanMukkala
@JaganMohanMukkala 4 жыл бұрын
I guess your tutorial is the first one i'm seeing the import statements being used instead of require statements. Most up to date tutorial. Thanks 👍
@mamaafrica2512
@mamaafrica2512 Жыл бұрын
რაო?
@skyz3ra
@skyz3ra 2 жыл бұрын
That's an actual tutorial. I watched like 10 others that were so abstract I felt like wasting my time. This one actually explained and show us stuff in a concrete way. Thanks a lot
@chhaysophal4042
@chhaysophal4042 Жыл бұрын
I just wanted to say thank you so much for creating and sharing this video tutorial on REST API. Your video was incredibly helpful and saved me a lot of time. I really appreciated how easy it was to understand, and the quality of the video was excellent. I now feel much more confident in my ability to work with REST API. Your contribution to the community is greatly appreciated, and I'm sure many others have benefited from your expertise. Thanks again, and keep up the fantastic work!
@gina7898
@gina7898 Жыл бұрын
The most comprehensive video on nodejs API. Thank you so much for putting in the effort to see people like us groundbreaking in these spaces.
@83greene
@83greene 3 жыл бұрын
This is such an awesome introduction to express & crud. You are a great teacher!
@mihaelacostea5783
@mihaelacostea5783 Жыл бұрын
You cannot imagine how happy your video made me! i've struggled so much with understanding other instructors that I almost lost hope that I could ever learn JavaScript. I even took an 8 hours freeCodeCamp course and it almost made me give up entirely on programming. Thank you so much!
@marwantraiki3499
@marwantraiki3499 Жыл бұрын
as a front end react dev . is this video good for a beginner in backend ?
@wilfredj.m.kabathi1633
@wilfredj.m.kabathi1633 2 жыл бұрын
Man you are great. I knew Javascript but had not worked with Express and Node. You just made me add something on my CV. You are great teacher. Looking forward for your MongoDB tutorial.
@ABLobos
@ABLobos Жыл бұрын
Dude how is it that im understanding every single thing you are spitting. Thank for being a master instructor!
@viktorlnt7835
@viktorlnt7835 3 жыл бұрын
Very clean, perfect for complete beginners. Thank you for the effort you put into this. Zero to hero :)
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Glad you enjoyed it!
@lilonkendimba5456
@lilonkendimba5456 2 жыл бұрын
Wow! Spent the entire day following this wonderful tutorial. Im really impressed. Thank you for this!
@beenmicrophone5817
@beenmicrophone5817 3 жыл бұрын
Awesome vid my guy. Thank u so much, the way u are able to explain all the little things along with the big things is really helpful, I always get stopped in my tracks when someone does something that i dont understand, u seem to cover that thought process every time!! 👍👍❤
@javascriptmastery
@javascriptmastery 3 жыл бұрын
I appreciate that!
@Sarawagi_rahul
@Sarawagi_rahul 3 жыл бұрын
Really Simple, Clean and Good Tutorial for beginners. Loved it !!!!
@jsamorozco
@jsamorozco 2 жыл бұрын
amazing!!,... this is the best tutorial have ever seen, clearly to understand and to take to practice! I really appreciate it.!.. I'm beginning with node , this helps me a lot.. I'm looking forward to finding more like this one!!
@oybektoshmatov9508
@oybektoshmatov9508 3 жыл бұрын
I like the way you explain buddy! I learned a lot through following your tutorials such as youtube-clone, covid-tracker projects. Keep it up, looking forward to more interesting projects
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Thank you, more coming!
@taylorbreutzmann6034
@taylorbreutzmann6034 3 жыл бұрын
Went through about 50 vids before this perfectly explained masterpiece came along. Thank you.
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Glad it helped!
@modernity3323
@modernity3323 3 жыл бұрын
Honestly speaking.. it was clearly explained. I can’t wait for the you to make a tutorial on authentication. Thanks
@BrianKeeganMusic
@BrianKeeganMusic 2 жыл бұрын
This was the best video I have watched that really helped me understand Express and JavaScript in general. I learned more in this tutorial than I could have ever imagined.
@sylol3193
@sylol3193 2 жыл бұрын
This is a great course. all the basic is covered in 1h tutorial. awesome work.
@TechnoDB
@TechnoDB 4 жыл бұрын
I love the way you put out the best practices.
@KilluaZolydck10
@KilluaZolydck10 3 жыл бұрын
Today I discovered this channel and surprisingly I watched your 3 videos on guided projects. I learned a lot from these videos. Now I am confident with React, Node, Rest API. Thanks a lot for providing such amazing content🤘💯
@shivanigaddagimath5994
@shivanigaddagimath5994 2 жыл бұрын
Hello Yash, have you created any projects in react and node? Are you a fresher in web dev and looking for job opportunities in the same?
@shubhamraj25
@shubhamraj25 Жыл бұрын
@@shivanigaddagimath5994 I am , yes
@Anonymous11175
@Anonymous11175 2 жыл бұрын
I am a first-time visitor of your video. as soon I spend 10 min, I realized this could be the best source... Subscribed and liked
@juliocesarnovelli8551
@juliocesarnovelli8551 3 жыл бұрын
Wow! It's a really good video! Thanks a lot for your job mate!!! It was clearly explained and it helped me to understand how really work an API. Again, thanks a lot. You have a new subs!
@richcaro3132
@richcaro3132 3 жыл бұрын
Oh, This is best video that is well explained for the GET, POST, DELETE, PATCH in node.js with express. It was easy to code along with you successfully . Thank you for the nice video. Great appreciation for the effort.
@Harshp062
@Harshp062 3 жыл бұрын
never watched that much smooth explanations. not everyone shows practical explain like you do. thanks a lot.
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Thanks! 😊
@shivanigaddagimath2143
@shivanigaddagimath2143 2 жыл бұрын
Hello Harsh! Are you a 2021-passout and open to job opportunities in web development ?
@ericamiranda3410
@ericamiranda3410 Жыл бұрын
Man.this all I need to know to working on.my assessment Full stack Web app... in 12 weeks course never seen this way to building up CRUD app ..Thanks for your video
@mudassir45
@mudassir45 3 жыл бұрын
So professional and clean tutorial with proper folder structuring and easy to understand. Much love from Pakistan
@byronk5
@byronk5 3 жыл бұрын
Best Express tutorial I have watched, many thanks!
@LongBoy.0
@LongBoy.0 3 жыл бұрын
Another week, another JS Mastery tutorial. Love the content, keep it coming.
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Thank you Corey, I appreciate it!
@surajgadage6004
@surajgadage6004 3 жыл бұрын
This channel definitely deserve more ....
@shankumondal2881
@shankumondal2881 4 жыл бұрын
After searching almost all the videos in youtube regarding API automation with Node.js. ...this is the best compact video suited for me. ❤️ Thanks 🙏👍
@javascriptmastery
@javascriptmastery 4 жыл бұрын
Thank you!😊
@endrifucia6975
@endrifucia6975 2 жыл бұрын
The best tutorial by far on REST API. Keep it up!
@srishtichaurasia7402
@srishtichaurasia7402 7 ай бұрын
An Absolutely No Nonsense Beginner's Guide to Getting Started with APIs. Loved coding along ❤
@smarthousetech8593
@smarthousetech8593 Жыл бұрын
I just graduated from as a web developer and I am going to go through a lot more of your videos now that I've found you. This is Gold the way you teach, Subbed
@Redstarcrew
@Redstarcrew Жыл бұрын
University?
@zekariyasmulugetaaltaye1065
@zekariyasmulugetaaltaye1065 Жыл бұрын
Just like you promised in the beginning of the video so practical. Great video
@LordR123
@LordR123 Жыл бұрын
your explanation is incredible, and also your accent and pronunciation are on point! thank you so much
@firesnake6311
@firesnake6311 3 жыл бұрын
Thanks man I've been searching for sth that I can understand rest api U changed my life
@designsavedme
@designsavedme 4 ай бұрын
It all finally makes sense. Thanks for this sir. And surely, I'd love to watch a full mearn stack tutorial
@AhmadMaartmesrini
@AhmadMaartmesrini 4 ай бұрын
Thank you so much Adrian ❤
@franciscogilt
@franciscogilt Жыл бұрын
The perfect introduction to REST with Node and Express.
@annangan427
@annangan427 8 ай бұрын
super useful tutorial! straight to the point!
@rawandaali8423
@rawandaali8423 Жыл бұрын
I've just watched this tutorial, I fully understand the concepts and how to build a rest API thanks a lot
@emanuelbernardini7017
@emanuelbernardini7017 3 жыл бұрын
The Best tutorial that i found on the Internet!
@maskman4821
@maskman4821 3 жыл бұрын
This is the best node express crud api tutorial without a doubt !!!
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Thank you, appreciate it!
@carlosduque8767
@carlosduque8767 2 жыл бұрын
Great video! This is exactly what I was looking for!!! Thank you so much
@ADPatil-rh2qf
@ADPatil-rh2qf Жыл бұрын
really amazing video I have ever seen on KZfaq.... appreciated🙌❤
@shreyasibhagwat8148
@shreyasibhagwat8148 2 жыл бұрын
Such a great tutorial!! Loved it! Thank you so much :)
@cendolbang99
@cendolbang99 2 жыл бұрын
been long time not doing this, such a good refresh!
@channel23653
@channel23653 3 жыл бұрын
Very useful and easy to understand. Thank you!
@RahulKumar-jx5ku
@RahulKumar-jx5ku Жыл бұрын
Excellent tutorial. Thanks a ton!
@mahadev1050
@mahadev1050 2 жыл бұрын
Awesome! this tutorial is totally beginner friendly. Thanks.
@user-ms2ij7pm3i
@user-ms2ij7pm3i 10 ай бұрын
Mate ........you are a legend.Keep sharing your experience and knowledge
@matanamswapna428
@matanamswapna428 2 жыл бұрын
Amazing video. Got to understand the basics! Thank you very much !
@benjaminpring
@benjaminpring 3 жыл бұрын
Your teaching style is awesome!!! I really enjoyed this video. Thanks so much!
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Thank you! 🙌
@zayeedbs
@zayeedbs 3 жыл бұрын
This is a very GOOD video, you should make another part to connect with MongoDB!
@sebiporini
@sebiporini 2 жыл бұрын
Ouuuuuu i loved it. Sunday. 11AM morning. Nothing to do. I said: "Lets give a try to this video". Totally worth it. I loved every step in this tutorial and has helped me a lot about what an API is. I now its totally amateur and probably has a lot of security problems. This post-get-delete-patch back end mini-app was GREAT!! I would love to add a database and query! Right now, you have won a new subscriber and i will check your videos. Love
@javascriptmastery
@javascriptmastery 2 жыл бұрын
That's amazing! I'm glad you liked it! 😊
@2difficult2do
@2difficult2do Жыл бұрын
Thank you very much for such detailed epxlanation! The best REST API tutorial for beginners. 👍
@dhruvpurwar6642
@dhruvpurwar6642 2 жыл бұрын
Best stuff found about RESTAPI's ever!!! Your work is commendable!!.....
@shivanigaddagimath2143
@shivanigaddagimath2143 2 жыл бұрын
Hello Dhruv! Are you a 2021-passout? Would you be interested in exploring job opportunities in web development?
@alexIVMKD
@alexIVMKD 4 жыл бұрын
It would be really nice if you could extend this content with MongoDB, great stuff
@javascriptmastery
@javascriptmastery 4 жыл бұрын
That's the plan!
@RNMERIA
@RNMERIA 4 жыл бұрын
@@javascriptmastery yes please. I know every day somebody is starting but we need some advance stuff too. Thank you
@Psychopatz
@Psychopatz 3 жыл бұрын
@@javascriptmastery thanks for this awesome tutorial sir! as always
@sandeepmishra5145
@sandeepmishra5145 3 жыл бұрын
@@javascriptmastery so you created with mongodb or not???
@romainmt1777
@romainmt1777 3 жыл бұрын
@@javascriptmastery Still the plan ? Wonderful vidéo though !
@itsnobledean9450
@itsnobledean9450 8 ай бұрын
I've done many of these tutorials, and I have to say, this is by far the best one I've taken.
@rickfearn3663
@rickfearn3663 2 жыл бұрын
Outstanding clarity.
@saadarman4718
@saadarman4718 9 ай бұрын
It was a great refresher for me . Thanks .
@shkram
@shkram 3 жыл бұрын
Thanks a lot! Great tutorial. Waiting for the end-to-end application with the MERN stack.
@javascriptmastery
@javascriptmastery 3 жыл бұрын
Coming soon! 👌
@lemonyth
@lemonyth 2 жыл бұрын
thanks a lot. this was a great refresher on the topic
@Radiosabines
@Radiosabines 3 жыл бұрын
Master yours explanations and sense of teaching is like drink water.... thank you
@rockfox5
@rockfox5 3 жыл бұрын
I love you, man. Keep it up.
@muhammadhumza5272
@muhammadhumza5272 3 жыл бұрын
outstanding tutorial, subscribed !!
@andrewkepson3055
@andrewkepson3055 4 жыл бұрын
You're the best! I love how you show us how to separate all of the functions for maximum usability, in a way that makes sense!
@javascriptmastery
@javascriptmastery 4 жыл бұрын
I'm glad you like it Andrew!
@anonysmooth648
@anonysmooth648 3 жыл бұрын
very detailed tutorial, thank you so much!
@carlosvanzego6330
@carlosvanzego6330 7 ай бұрын
Great video! Super helpful and insgihtful on my development journey.
@vitus6644
@vitus6644 4 жыл бұрын
Great tutorial! Thank you! Yes please, extend this this tutorial with full stack!
@javascriptmastery
@javascriptmastery 4 жыл бұрын
Will do!
@widowedsock
@widowedsock Жыл бұрын
Thank you for the tutorial!
@nazmulhayat8844
@nazmulhayat8844 2 жыл бұрын
I really loved this tutorial. Learnt a lot!
@sidneyonahon602
@sidneyonahon602 Жыл бұрын
thank you man you made my life easy to learn.
@cengizc.matarac260
@cengizc.matarac260 2 жыл бұрын
Thank you for this delightful tutorial, rock on!
@Arkere
@Arkere 2 жыл бұрын
Thank you great video, learned so much!
@user-tj5kq3lp9c
@user-tj5kq3lp9c 6 ай бұрын
thanks for the video , very helpful!!
@frontenddesign5368
@frontenddesign5368 4 жыл бұрын
nice bro please upload more projects like this, im using your projects as practice for my lessions thank you so much😍
@javascriptmastery
@javascriptmastery 4 жыл бұрын
More coming!
@mistn
@mistn Жыл бұрын
Awesome quality tutorial. Much appreciated!
@thuathuynh3023
@thuathuynh3023 Жыл бұрын
Thank you for this video !
@leeroyjenkins6462
@leeroyjenkins6462 10 ай бұрын
Awesome tutorial!
@mikealejandro3938
@mikealejandro3938 3 жыл бұрын
Bro, you're insane, i'm learning backend, i love the MERN stack, but it's kinda hard to learn it, but it worth the fucking pain ! You're videos have made me improve my skills to 120% level, love to you my man !
@stevenmugishamizero8471
@stevenmugishamizero8471 6 ай бұрын
Thank you for an amazing tutorial
@AIMLTushaGangwar
@AIMLTushaGangwar 2 ай бұрын
You are just amazinggg !! ❤
@HarmonyHavenPlace
@HarmonyHavenPlace 9 ай бұрын
Top notch tutorial!
@NuroWebMastery
@NuroWebMastery Жыл бұрын
Very clean, perfect for complete beginners. Thank you for the effort you put into this. please make the same video but this time with mongodb
@mohd.maasir8198
@mohd.maasir8198 11 ай бұрын
thank for the tutorial. made many things clear.
@akademidevid
@akademidevid 3 жыл бұрын
Awesome. You're doing great! Make another like this
@amaldravid4979
@amaldravid4979 2 жыл бұрын
Thanks for this wonderful video !!! I seen many videos but yours is east to understand, kindly continue the same !!!
How to build a REST API with Node js & Express
58:40
Programming with Mosh
Рет қаралды 1,7 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 112 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,4 МЛН
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 331 М.
Build a Rest Api with NodeJS (JavaScript), Express, and PostgreSQL
1:07:53
Learn Express JS In 35 Minutes
36:03
Web Dev Simplified
Рет қаралды 782 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
Backend web development - a complete overview
12:58
SuperSimpleDev
Рет қаралды 1,7 МЛН
Build A Restful Api With Node.js Express & MongoDB | Rest Api Tutorial
53:55
What is REST API?
15:41
Piyush Garg
Рет қаралды 91 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 932 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 112 МЛН