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

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 697

  • @javascriptmastery
    @javascriptmastery  3 года назад +38

    JavaScript Mastery PRO launching soon! Be the first one to find out about it - javascriptmastery.eo.page 🔥

    • @LindaLinda-ls2fd
      @LindaLinda-ls2fd 3 года назад

      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 3 года назад +3

      ​@@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 3 года назад +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.
      ruclips.net/video/l8WPWK9mS5M/видео.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....

  • @samnayakawadi
    @samnayakawadi 2 года назад +53

    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 2 года назад

      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

  • @mihaelacostea5783
    @mihaelacostea5783 Год назад +2

    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 Год назад +2

      as a front end react dev . is this video good for a beginner in backend ?

  • @subhadipkhawas5085
    @subhadipkhawas5085 Год назад +2

    hats-off to this man's patience level, explaining each and everything with clear English pronunciation. Thank you so much

  • @shargeforce
    @shargeforce 4 года назад +227

    Just here to vote for the MongoDB tutorial. I hope my comment helps the algorithm. Great video.

    • @javascriptmastery
      @javascriptmastery  4 года назад +12

      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 года назад +2

      @@javascriptmastery Waiting for MongoDB as a continuation part of this tutorial :)

  • @skyz3ra
    @skyz3ra 3 года назад +59

    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

  • @ericamiranda3410
    @ericamiranda3410 2 года назад +1

    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

  • @Zara-pn9im
    @Zara-pn9im 2 месяца назад +1

    What a tutorial, even after 4 years of being published, i find it now, and only tutorial i can understand

  • @ABLobos
    @ABLobos Год назад +1

    Dude how is it that im understanding every single thing you are spitting. Thank for being a master instructor!

  • @nileshsaini09
    @nileshsaini09 2 года назад +3

    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 2 года назад +2

    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 !

  • @Anonymous11175
    @Anonymous11175 2 года назад +1

    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

  • @sebiporini
    @sebiporini 2 года назад +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

  • @hilton9304
    @hilton9304 3 года назад +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 !

  • @farrukhatabekov595
    @farrukhatabekov595 4 года назад +43

    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 3 года назад +3

      If you found it then let me know please!

  • @franciscogilt
    @franciscogilt 2 года назад

    The perfect introduction to REST with Node and Express.

  • @wilfredj.m.kabathi1633
    @wilfredj.m.kabathi1633 2 года назад +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.

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

  • @dhruvpurwar6642
    @dhruvpurwar6642 3 года назад

    Best stuff found about RESTAPI's ever!!! Your work is commendable!!.....

    • @shivanigaddagimath2143
      @shivanigaddagimath2143 3 года назад

      Hello Dhruv! Are you a 2021-passout? Would you be interested in exploring job opportunities in web development?

  • @JaganMohanMukkala
    @JaganMohanMukkala 4 года назад +9

    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 👍

  • @srishtichaurasia7402
    @srishtichaurasia7402 11 месяцев назад

    An Absolutely No Nonsense Beginner's Guide to Getting Started with APIs. Loved coding along ❤

  • @alexIVMKD
    @alexIVMKD 4 года назад +173

    It would be really nice if you could extend this content with MongoDB, great stuff

    • @javascriptmastery
      @javascriptmastery  4 года назад +32

      That's the plan!

    • @RNMERIA
      @RNMERIA 4 года назад +3

      @@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 года назад +9

      @@javascriptmastery so you created with mongodb or not???

    • @romainmt1777
      @romainmt1777 3 года назад

      @@javascriptmastery Still the plan ? Wonderful vidéo though !

  • @taylorbreutzmann6034
    @taylorbreutzmann6034 3 года назад +5

    Went through about 50 vids before this perfectly explained masterpiece came along. Thank you.

  • @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.

  • @clydesikanwe9667
    @clydesikanwe9667 19 дней назад

    I would like to take the moment of appreciating the knowledge you shared in this tutorial 🙏!
    What a blessing it has been for me and thank you very much!

  • @RaymondGuo002
    @RaymondGuo002 2 месяца назад

    Amazing tutorial, I followed this video from scratch to end, and I've understood what the api is clearly with your helo, thanks so much

  • @lilonkendimba5456
    @lilonkendimba5456 2 года назад +1

    Wow! Spent the entire day following this wonderful tutorial. Im really impressed. Thank you for this!

  • @Radiosabines
    @Radiosabines 3 года назад

    Master yours explanations and sense of teaching is like drink water.... thank you

  • @itsnobledean9450
    @itsnobledean9450 Год назад

    I've done many of these tutorials, and I have to say, this is by far the best one I've taken.

  • @rawandaali8423
    @rawandaali8423 2 года назад

    I've just watched this tutorial, I fully understand the concepts and how to build a rest API thanks a lot

  • @maskman4821
    @maskman4821 4 года назад +4

    This is the best node express crud api tutorial without a doubt !!!

  • @SamuelEffahOfosu
    @SamuelEffahOfosu Год назад +1

    You just earned an extra subscriber with this video

  • @shankumondal2881
    @shankumondal2881 4 года назад +1

    After searching almost all the videos in youtube regarding API automation with Node.js. ...this is the best compact video suited for me.
    ❤️
    Thanks 🙏👍

  • @Thatcityboy697
    @Thatcityboy697 2 месяца назад

    This is arguably the best video of nodejs on RUclips.. Hat off to you man 🙌🙌

  • @satishtiwari001
    @satishtiwari001 2 года назад

    This tutorial is actual teach new thing as well as save our time .

  • @jackendycherenfant3929
    @jackendycherenfant3929 4 года назад +1

    Honestly I have to say this sad story, I have been watching tutorial for many years and this is the first time I understand this topic well specially Controllers. I have been trapped in the tutorial hells for years but now I am taking it very serious and this video helped a lot... Thank you!

  • @KilluaZolydck10
    @KilluaZolydck10 3 года назад +4

    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 3 года назад

      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

  • @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 4 года назад +1

    never watched that much smooth explanations. not everyone shows practical explain like you do. thanks a lot.

  • @PranavMishra-u8l
    @PranavMishra-u8l Год назад

    Mate ........you are a legend.Keep sharing your experience and knowledge

  • @mudassir45
    @mudassir45 3 года назад

    So professional and clean tutorial with proper folder structuring and easy to understand.
    Much love from Pakistan

  • @jarodday1299
    @jarodday1299 2 года назад +1

    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

  • @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!

  • @LordR123
    @LordR123 Год назад

    your explanation is incredible, and also your accent and pronunciation are on point! thank you so much

  • @viktorlnt7835
    @viktorlnt7835 3 года назад +23

    Very clean, perfect for complete beginners. Thank you for the effort you put into this. Zero to hero :)

  • @surajgadage6004
    @surajgadage6004 4 года назад +8

    This channel definitely deserve more ....

  • @bladetv7370
    @bladetv7370 5 месяцев назад

    Best tutorial ever . kindly continue a second part where you teach how to connect this to the mongoDb database

  • @modernity3323
    @modernity3323 4 года назад +2

    Honestly speaking.. it was clearly explained. I can’t wait for the you to make a tutorial on authentication.
    Thanks

  • @victormanuelsandonpoma9835
    @victormanuelsandonpoma9835 3 года назад +1

    El mejor curso de la vida para aprender Express

  • @firesnake6311
    @firesnake6311 3 года назад

    Thanks man
    I've been searching for sth that I can understand rest api
    U changed my life

  • @Lohitpant
    @Lohitpant 3 года назад

    cleared my API basics like req, res, body, params and different types of requests. Thanks!

    • @shivanigaddagimath2143
      @shivanigaddagimath2143 3 года назад

      Hey Lohit, have you completed any projects using node? Are you a fresher and open to full-time roles in web development?

  • @skyz3ra
    @skyz3ra 3 года назад

    Super clean didn't even see the hour go

  • @jsamorozco
    @jsamorozco 2 года назад +1

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

  • @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.

  • @nearobserver29
    @nearobserver29 9 месяцев назад +1

    Wow, Thank you so much, this type of video i am looking for, can you please do an separate video on this video using MongoDB

  • @2difficult2do
    @2difficult2do Год назад

    Thank you very much for such detailed epxlanation! The best REST API tutorial for beginners. 👍

  • @Justin_Min_001
    @Justin_Min_001 4 года назад +9

    Simple and easy to follow but powerful tutorial. I loved it. Thank you!

  • @qatester6425
    @qatester6425 Год назад

    Excellent, I learn an easy way with clear explanation. Thanks a much, really appreciate your effort.

  • @sg-ck2oh
    @sg-ck2oh 4 года назад +4

    Extending the project with MySQL and talking a bit about security will be great

  • @selamantech2003
    @selamantech2003 2 года назад

    Ohhhh guys it's so amazing tutorial. The way he explain things are so amazing. Thanks

  • @sidneyonahon602
    @sidneyonahon602 2 года назад

    thank you man you made my life easy to learn.

  • @cengizc.matarac260
    @cengizc.matarac260 2 года назад +2

    Thank you for this delightful tutorial, rock on!

  • @TechnoDB
    @TechnoDB 4 года назад +2

    I love the way you put out the best practices.

  • @designsavedme
    @designsavedme 8 месяцев назад

    It all finally makes sense. Thanks for this sir. And surely, I'd love to watch a full mearn stack tutorial

  • @fajarsetiawansiagian
    @fajarsetiawansiagian 2 года назад

    thanks for you video, cause im from laravel developer its make me easy to understand to make the crud API, but i hope this videos include, schema, models, form validations, i thinks its great

  • @premKumar-il1qy
    @premKumar-il1qy 4 года назад +5

    at 20:31 "res.send(users);" gave me the objects in the browser, BTW great tutorial man keep going, thank you!❤️🔥

    • @javascriptmastery
      @javascriptmastery  4 года назад

      Thanks!😊

    • @GabrielRodriguez-cr3vg
      @GabrielRodriguez-cr3vg 4 года назад

      I only got the "Hello" response, but not the objects and I don't know why

    • @timw.
      @timw. 4 года назад +2

      @@GabrielRodriguez-cr3vg because in the tutorial he only adds console.log(users);, but you need to change "res.send('Hello');" to "res.send(users);".

    • @GabrielRodriguez-cr3vg
      @GabrielRodriguez-cr3vg 4 года назад +1

      @@timw. Thank you very much dude! :)

    • @timw.
      @timw. 4 года назад +1

      @@GabrielRodriguez-cr3vg No probs dude :D

  • @KeshavKumar-re1ls
    @KeshavKumar-re1ls 4 года назад +1

    You are just the best instructor out there.

  • @arjungarg4075
    @arjungarg4075 4 года назад +2

    Thanx for making this video , the way you explained is much better than any teacher🙏. Can we next video on a project on Content management system .

  • @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 👍

  • @grajkumar9686
    @grajkumar9686 Год назад

    Sir please create a video where real interaction with the database is involved, this video had such a great content. 🔥🔥

  • @ladydidi8725
    @ladydidi8725 4 года назад

    Sir, whoever clicked unlike button under your video, it is jealous of your talent. Excellent tutorial!

  • @nadeemabbasi102
    @nadeemabbasi102 2 года назад

    Yes, Yes. Node.js Express with Mongo db as Database. Please------By the Way You are the Best So far I have seen. Like If you are pro, then it is very difficult to come down to beginner level and explain. But you nailed it Bro. Superb 👌👌

  • @wahhaab7
    @wahhaab7 Год назад +1

    You improved so much

  • @emanuelbernardini7017
    @emanuelbernardini7017 4 года назад +1

    The Best tutorial that i found on the Internet!

  • @benjaminpring
    @benjaminpring 3 года назад +2

    Your teaching style is awesome!!! I really enjoyed this video. Thanks so much!

  • @misterhtmlcss
    @misterhtmlcss 4 года назад

    Dude great video, but have to tease you big time for using BodyParser, which has been re-included in Express for a while now and you are using Import. Nothing is broken and I'm not being negative, but I just saw that juxtaposition as something that made me smile.

  • @endrifucia6975
    @endrifucia6975 2 года назад

    The best tutorial by far on REST API. Keep it up!

  • @zekariyasmulugetaaltaye1065
    @zekariyasmulugetaaltaye1065 2 года назад

    Just like you promised in the beginning of the video so practical. Great video

  • @sylol3193
    @sylol3193 2 года назад

    This is a great course. all the basic is covered in 1h tutorial. awesome work.

  • @cendolbang99
    @cendolbang99 2 года назад

    been long time not doing this, such a good refresh!

  • @mohd.maasir8198
    @mohd.maasir8198 Год назад +1

    20:29 small correction: it should be res.send(users)

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

  • @byronk5
    @byronk5 3 года назад

    Best Express tutorial I have watched, many thanks!

  • @nilmendes7710
    @nilmendes7710 4 года назад +2

    This tutorial helped me to understand an API.
    My suggestion, that if it is possible a demonstration with mongodb.
    Waiting for the next tutorials.

  • @oybektoshmatov9508
    @oybektoshmatov9508 4 года назад +8

    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

  • @accessarham
    @accessarham 2 года назад

    JavaScript Mastery, You're doing a great job for new developers. Please make a video for API and MongoDB.

  • @mageshsakthi4008
    @mageshsakthi4008 4 года назад +2

    loved the way of teaching Man... please extend this API with connecting to MongoDB and Also provide us video on MERN full stack..
    Thank You..

  • @ADPatil-rh2qf
    @ADPatil-rh2qf Год назад

    really amazing video I have ever seen on RUclips.... appreciated🙌❤

  • @chennakesava3842
    @chennakesava3842 4 года назад

    Great explanation..!, I have cleared all my doubts by watching this video, Please make a video of authentication and authorisation using node Js and JWT and also sending email verification by a node mailer by this lot of developers can get a clarification how to secure a website.
    Thank you..!

  • @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 !

  • @mritz579
    @mritz579 2 года назад +1

    One thing I had trouble with was the router.patch method. Using strict equality with user.id === id results in an error.
    What I had to do was user.id.toString() === id or user.id == id. This needs to be done on every method for proper returns when matching a number to a parameter as far as I can tell. I realize uuid wraps there ID's in quotes but this might not always be the case. Nice video though!

    • @Anand-zg6jv
      @Anand-zg6jv Год назад +1

      why req.body is undefined , anyone knows ??

  • @ryanribeiro5854
    @ryanribeiro5854 2 года назад +1

    Amazing video!!
    I can't find the video with mongodb
    the video hasn't been released yet?

  • @carlosvanzego6330
    @carlosvanzego6330 11 месяцев назад

    Great video! Super helpful and insgihtful on my development journey.

  • @zayeedbs
    @zayeedbs 3 года назад +5

    This is a very GOOD video, you should make another part to connect with MongoDB!

  • @matanamswapna428
    @matanamswapna428 2 года назад

    Amazing video. Got to understand the basics! Thank you very much !

  • @shkram
    @shkram 4 года назад +2

    Thanks a lot! Great tutorial. Waiting for the end-to-end application with the MERN stack.

  • @grequchannel
    @grequchannel 3 года назад +2

    Thanks a lot, I love your way of explaining stuff

  • @jaipurite.k_lalit
    @jaipurite.k_lalit 2 года назад +1

    who told you time traveling is not possible, from 2022 to 2020( in 2022 its boom so I came back in 2020 to learn this masterpiece)

  • @grahamaustinjordan9139
    @grahamaustinjordan9139 11 месяцев назад

    This is GREAT, LOVE IT. Im waiting next video with MongoDB or Firebase. Thanks in advance

  • @technoinfoworldwide2329
    @technoinfoworldwide2329 4 года назад +1

    Searching this kind of tut..awesome..make more node js and express advance tutorial