RESTful APIs in 100 Seconds // Build an API from Scratch with Node.js Express

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

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

  • @MrNsaysHi
    @MrNsaysHi 3 года назад +2948

    Front-end Dev: fix your responses!
    Backend Dev: fix your requests!

    • @nicosup
      @nicosup 3 года назад +227

      meanwhile fullstack devs, jaja mere mortals

    • @skyracer-mk8hg
      @skyracer-mk8hg 3 года назад +126

      until you notice that a rest api requires json as input and outputs xml

    • @priyanshusharma6763
      @priyanshusharma6763 3 года назад +29

      And that's how hatred cycle continued 🤣

    • @rifaldhiaw
      @rifaldhiaw 3 года назад +113

      User: Fix your app!

    • @ragulu9267
      @ragulu9267 3 года назад +67

      @@rifaldhiaw Tester : "We found a bug"

  • @doroaros
    @doroaros 3 года назад +820

    It's incredible how much you can explain and transmit in 100 seconds while others cannot reach an idea in 40 hours courses.

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

      hey there.
      the what, why how
      of
      express node jWT and other allied technologies within the ecosystem.
      In a NutShell.
      ruclips.net/video/CNVtR0WgKDc/видео.html
      LIKE, SHARE and SUBSCRIBE to the channel for more.

    • @Konslufius
      @Konslufius 2 года назад +22

      Because they tend to drift away and mention a bunch of terms that are relevant but don't elaborate further and you just have to understand/know them.

    • @monssidus1291
      @monssidus1291 2 года назад +2

      not even one redundant word in any sentence. much appreciated for well thought out and articulated education.

    • @monssidus1291
      @monssidus1291 2 года назад +7

      @@Konslufius people aren't RESTfull, the way data goes between humans is not fun.

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

      that’s what i was going to say😮😮.

  • @0mdshuvo0
    @0mdshuvo0 3 года назад +685

    Manager: Why isn't your APIs responding?
    Me: Its RESTing

  • @Alex-xl4xe
    @Alex-xl4xe 3 года назад +117

    Holy crap, every single new video of you astonishes how it is possible for a single human being to keep up to date with all these technologies and even explaining them so well, putting them into 100 seconds of proper video and even offering longer tutorials as a pro-Member. Insane!

  • @97rob97
    @97rob97 3 года назад +706

    Interviewer: What is a REST API?
    Candidate: API that follows the rules of RESTful
    Interviewer: You hired!

  • @Nintron
    @Nintron 3 года назад +101

    “All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can’t get them together again, there must be a reason. By all means, do not use a hammer.”
    - IBM Manual, 1925

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

      TIL IBM was founded in _1911_ ?!? Wtf?

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

      @@nothingnoone8752 Yeah, for one reason they are critiqued for helping the Nazis, might wanna check that out.

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

      It's cooler 1925, but should say 1975: ibm.com/downloads/cas/1V29LE4Z

  • @verybadmusic
    @verybadmusic 3 года назад +41

    Whenever there is a new Fireship video, I feel like Neo when he's about to learn Jiu-Jitsu

  • @bnardus
    @bnardus 3 года назад +15

    I literally spent the last 2 days trying to decide what approach I should take for an API, and here you are. It's as if the needs of devs just calls to you

  • @anoodle8319
    @anoodle8319 8 месяцев назад +4

    I've been using REST APIs forever without knowing the underlying logic! Thank you so much for this video!

  • @philipbecker3332
    @philipbecker3332 3 года назад +92

    I love this. Straight to the point and extremely clear - I was searching for days for something like this! Thank you!

  • @bartoszjarczynski438
    @bartoszjarczynski438 3 года назад +3

    First 3 seconds of video convinced me to like this video because there's no 'hi guys today I'm going to explain you what the API is how does it work and than we gonna build one ourselves so let's jump into it, roll the intro' and than after 20s dubstep intro he would start talking nonsense in different language. So I respect you for respecting our time and going straight to the point.

  • @ChuanyiXia
    @ChuanyiXia Месяц назад +2

    このブログ記事はいつも非常に有益な情報が満載ですね!最近、RESTful APIに関する議論をきっかけにEchoAPIを試してみたのですが、エンドポイントシミュレーションツールのおかげでテスト作業が格段に効率化されました。

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

    Idk why but this video is so good at explaining the essentials while also going into detail when needed. This is like the only video i watch to help refresh my memory of APIs. Its like my 5th time watching lmao

  • @calderov
    @calderov 11 месяцев назад +3

    This channel is gold! I learned more in 10 minutes from you than in a couple of hours reading sparse documentation. Thak you!

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

    I've been working on an API/Express project and I had no idea tools like Insomnia exist. Game changer -- thank you *so* much for another great video.

  • @Springfielde
    @Springfielde 3 года назад +18

    The knowledge you pass on isn't comparable in value with a T-Shirt.

  • @highfructosecornsyrup
    @highfructosecornsyrup 3 года назад +3

    i find your videos a nice way to refresh myself (without watching an hour-long video) when i haven't touched a certain topic in a while, thanks Fireship!

  • @abishekp.y4736
    @abishekp.y4736 3 года назад +140

    All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer.

    • @Fireship
      @Fireship  3 года назад +50

      Well done! That was quick, send me an email or DM on slack with your size and mailing address 👕

    • @abishekp.y4736
      @abishekp.y4736 3 года назад +3

      @@Fireship thank you 🤩

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

      Uhhh

    • @SirDamatoIII
      @SirDamatoIII 3 года назад +8

      If the only tool in your toolbox is a hammer, every problem somehow seems like a nail.

    • @neillunavat
      @neillunavat 3 года назад +11

      @@SirDamatoIII my mans breaking the fourth wall of philosophy here

  • @donmikkodanm.olmillo8154
    @donmikkodanm.olmillo8154 3 года назад +15

    I have started on learning JS, Node and Express. Thank you for this awesome video about RESTful APIs. This really helps me getting things much clearer!

  • @one4rif
    @one4rif 3 года назад +8

    I'm a front-end dev (Angular), I find your video simple and straightforward. Thank you!

  • @Exen88
    @Exen88 2 года назад +9

    I swear my college class on programming was a waste. I couldn’t learn and the teacher doing the teaching made it difficult to like.
    Now on my own term, videos like this I can digest the information really well.
    Who is doing the teaching matters. Thank you youtube and the proliferation of information from the internet.

  • @ahnmichael1484
    @ahnmichael1484 2 года назад +2

    You keep saving my life 😭 So many elitist, semi-intentionally poorly explained concepts, and you make them so approachable. It's not the first time I've come to your videos for rescue; it definitely won't be the last!

  • @keitumetsemolefe3515
    @keitumetsemolefe3515 Год назад +4

    This is by far the most clear and straightforward tutorial I've ever come across. Thank you so much 🔥🔥

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

    OK! I'm not binging Netflix onward!! Here I'm watching FIREShip productions.
    This 100s series got me rolling deeper into web development more than I have ever did. Hats off for such genius content creation. Loving it! 💯
    I've never enjoyed and learnt so much my entire YT browsing history before running into Fireship. 🤞

  • @inklingboi8431
    @inklingboi8431 3 года назад +110

    418 is the "I'm a teapot" response code, nice xD

    • @w1d3r75
      @w1d3r75 3 года назад +18

      Twitter also have a 420("enhance your calm) status code for rate limit request xD

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

      @@w1d3r75 haha nice X)

  • @PacifiqueStormz
    @PacifiqueStormz 3 года назад +3

    It's crazy how he always post a video about a topic that I just have been researching or learning at school 🤯

  • @Amir_ZMI
    @Amir_ZMI 3 года назад +11

    I have a suggestion... recently I was in a big project and I was confused as hell. We had many arguments and fights about what folder structure to use for our API:
    - Where to put validation?
    - Use validation in express.js way (in the routes like a middleware) or separately?
    - Where to put routes?
    - break routes into different files or one single file? If so, break based on what?
    There are just countless questions to be answered in this regard. The problem also is that nobody makes videos about folder structure for enterprise level applications. It would be great if you could make it a thing.

  • @raghav.bhardwaj
    @raghav.bhardwaj 3 года назад +1

    Not only I learned About REST API, I also Learned Basics of Express JS. I always wanted to Learn Node + Express, Now you have motivated me to start Learning it ASAP. Thank You.

  • @key_michael
    @key_michael 3 года назад +32

    In continuity to this tutorial I would suggest that a set of videos showing how to deal with persistent data would be ideal. Most people can learn how to create the API URIs, but the real deal is when it is for a developer to manage to records to a Database. That's MySQL for example and not Firebase which happens to be more simplified. Also, an example from various programming languages should help a ton of people to move things forward.

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

    Congratulations, you've learned enough to get a job at any mid-to-large size company developing APIs.

  • @skuffies
    @skuffies 2 года назад +20

    I always love your 100 seconds videos and your tutorials but this one really makes it up there amongst the best, really great explaining and it helped me complete my first project.

  • @Joshua-yc9ei
    @Joshua-yc9ei 3 года назад +2

    When I first learned about REST apis it took me weeks if not months to understand this concept, your videos are amazing, keep it up!

  • @_timestamp
    @_timestamp 3 года назад +127

    10:59 YES, I (we?) want a full tutorial :)

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

    Damn I just wrote one of those this week!! Hadn’t used Express before and was very pleased with how straightforward it is.

  • @vasco___
    @vasco___ 3 года назад +483

    all of those jokes are tiring me, i need to REST :D

  • @大花猫-i3o
    @大花猫-i3o 3 года назад +2

    Thank you so much, there are so many guys want to explain a concept in “simple” term but actually mess easy things up

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

    Nice! took me a few days to get through this 100 second video but I actually earned my congratulations this time! Thank you for the content! I look forward to more like this!
    some more exclamation marks for good measure: !!!!!!!

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

    well everyone here was already clear and aware as to what a restful api is, but still watched it like me to appreciate your hard work and in turn refresh our knowledge

  • @poglord._
    @poglord._ 3 года назад +14

    Hey, predicted it yesterday. Was just researching about it and then I got this notification. Amazing job man 👍. Now
    I can REST my APIs (see what I did there? )

  • @unknownperson5578
    @unknownperson5578 6 месяцев назад +2

    I have been going through multiple chanel since 10 days but got complete required knowledge in this single vide. Thank you so much❤❤❤

  • @Shulkerkiste
    @Shulkerkiste 3 года назад +221

    Haha, I wrote my exam about REST-APIs a few hours ago :D

  • @yahyagahbiche293
    @yahyagahbiche293 5 месяцев назад +1

    This is my second video on APIs and you've explained it so well!

  • @voxlz
    @voxlz 3 года назад +6

    Knew about REST but would love to hear more about the API configuration part at the end!

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

    An crystal clear explanation of writing an API with Node.js and Express!

  • @tobiasrasmussen4347
    @tobiasrasmussen4347 2 года назад +9

    Fantastic tutorial. Your instructions are very easy to follow, the pacing is perfect for getting to the points fast without feeling rushed, and this provides the perfect foundation for further exploration.

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

    Honestly, this is the best explanation of restful apis I've ever seen.

  • @xp5655
    @xp5655 2 года назад +157

    Oh sometimes API needs to REST

    • @ScarlettNuvvoTV
      @ScarlettNuvvoTV 8 месяцев назад +15

      I need a rest from APIs lmao

    • @hopahop8071
      @hopahop8071 6 месяцев назад +2

      REST assured it will get it one day.

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

      😂😂

    • @eyosiyas37
      @eyosiyas37 3 месяца назад

      Rest in peace 😂

    • @Victor_NCX
      @Victor_NCX Месяц назад

      Its enough, guess you guys should REST 😂

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

    100 sec completes in 2 hours, while whole video took 5 hour. great thank for this video.

  • @mattroark216
    @mattroark216 3 года назад +6

    This was an amazing video just lime the rest of them. I love your channel and all you do. Becuase of your videos I was able to keep working where other wouldn't!! Thank you !

  • @Goddess-Akane-888
    @Goddess-Akane-888 2 года назад +1

    o-o, my brain hurts from all the reading and YT videos just to explain the gist of express, API, and insomnia. Thank you, good sir! My brain cells are forever grateful.

  • @ericzorn3735
    @ericzorn3735 3 года назад +14

    Great content as always, I would love to see the AWS infrastructure provisioning via swagger/open API documentation. Never knew that was possible, but that’s really cool

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

    FINALLY!!!!!!
    A single quick and useful explanation of what a REST API is!!!!!!!!!

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

      for some reason stupid youtube was deleting my comment over and over, until I split it this way.

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

      For many years, i tried to figure out, what it is, reading lengthy articles, downloading 200-300 page books, that I never wanted to read for more, then the 1st chapter, watching videos about it, asking about it on forums. Up to this point, the understanding of what this technology is was very vague, although, I have many years of experience in programming software and web apps (frontend and backend).

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

      I just couldn't grasp the concept of what this weird technology is about and what it is for. I thrived for this short, complete, simple and sane explanation from the beginning. I couldn't get some programming jobs only, because they were asking about this weird RESTFull creature thing and I didn't know what it was.

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

      Basically, everything, that I've already been doing on web development is already RESTFull, I just didn't know, that it was called that, especially, that most of the similar techniques, I came up myself, just refining my development techniques over time.

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

      THAAAAAAAAAAAANX!!!
      Finally, I know, what it is! And I can throw away those lengthy no good books about RESTFull API, because, all they had to do was just make the same explanation, that you did!
      Why, oh, why I couldn't find anything as simple and explanatory, as your video, years ago!
      I dropped a big boulder of my shoulder!

  • @patrykmakowski5362
    @patrykmakowski5362 3 года назад +3

    Love your content. Saw every video and there is no person like you on the whole youtube. Every material Is well structured and explained better in few minutes than some tutorials 1h long.

  • @_PranavDesai
    @_PranavDesai 2 года назад +2

    As someone new to all of this, man, this was a blessing!

  • @YTLyZ4RD
    @YTLyZ4RD 3 года назад +82

    gRPC in 100 seconds please!

    • @claudenirmf
      @claudenirmf 3 года назад +15

      I'd prefer a video on RPC first and then explain the role of gRPC

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

      I came here to say this.

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

      RPC

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

    Love your video dude! It was taught to us for hours and I didn't understand anything but here in just - 100 seconds

  • @arturomedina2055
    @arturomedina2055 3 года назад +19

    Yes, I want to see a full tutorial on that subject.

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

    We learned WebSockets/Message Queues and RESTful APIs in Java. It had a LOT of boilerplate code, it was frustrating. Good thing I discovered afterwards Express, but I've also learned something from your video. Keep up the good work!

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

    I've just experienced a speed of light fast transmission of light into my ignorant brain through this video. Thanks dude...I will be back for more.

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

    A full tutorial on APIs please! Love the content.❤️

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

    Bro, this channel is so underrated. Like I know so much more of js from you. Love the animations too. Keep up the great work!

  • @nielskersic328
    @nielskersic328 3 года назад +11

    I would really love to see the full API Gateway configuration!

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

    This was a really cool video. I heard about REST API, I read swagger doc, used Postman, heard about curl, JSON, but this video nicely tied everything together
    It's both terrifying and exciting at the same time to transition from HW to SW ENG. This is week 2. Thanks, keep up the good work.

  • @CodingNuggets
    @CodingNuggets 3 года назад +7

    Simple explanations in a super well-formatted videos from you always. Love your content. Thanks. See you soon!

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

      The time a video lasts hasn't even passed yet. Clearly didn't watch the whole thing.

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

      @@mrdza96 I watched on 2x and skimmed through. I already know API's thoroughly and it's a vital part of my job. I completely built a robust API from scratch over the past 10 months for the client I'm currently working for and I have built many in the past even for my own projects. I have extensive experience on the backend. Also, I commented quickly to get attention to my channel. No harm in that and just being transparent.

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

      @@CodingNuggets I do not doubt in your experience. I know about REST APIs too. I just tend to watch the whole clip in respect of the work Jeff puts in all of his videos.

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

      @@mrdza96 He does do amazing work and his editing is always so good. I went ahead and watched the whole video on 2x and didn't skim so it wouldn't hurt his watch time. Appreciate you bringing it to my attention.

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

    I thought that it would take hours to get Insomnia working with this Node.js project but they have got things right and for once everything in this tutorial worked fine! Thanks!

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

    You nailed it brother. Well done! Thumbs up (Y)

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

    The quality of your videos is just excellent. Keep up the great work 🙏

  • @himo5666
    @himo5666 2 года назад +16

    Can you do a tutorial where you create an API that takes user input and kind of show us the basics of how to handle users?

    • @fattoosh69
      @fattoosh69 10 дней назад

      I would really love that !
      A video wiith all the authentication and authorization logics with a good framework for frontend too.

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

    Lol, I just read everything about REST apis this morning because of your GraphQL post. And here we are

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

    Absolutely brilliant! Thank you sooo much for this lesson! :)

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

    I'm currently working on my capstone for university and this video was so helpful in explaining how to create an API with Node.js and Express

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

    Fireship: I don't like code generators
    Also Fireship: Let's generate some React Components
    Also Fireship: Let's generate an Electron App

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

    I LOVE YOUR 100SEC videos. they're the best to get a general idea over new terms or languages... as i was about to search for rest api, i found this video, and its the best for me to know what to go on and do now

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

    Your tutorials are really nice, thanks for taking time for making these series and videos

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

    what an explanation dude. I am new at node js but no one explained how to create a simple get post api as simple as this. Thank you

  • @omemester6985
    @omemester6985 3 года назад +7

    ORM in 100 seconds please! More specifically sequelize if possible

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

    I took this information about restful API in my presentation and response I got was awesome thank you so much for providing that much information in just 100 seconds thank you so much ❤️❤️

  • @FalseDev
    @FalseDev 3 года назад +6

    I'm here in 15 seconds, never been this early!

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

    Creating and maintaining these is my job. Specifically applied for a non-frontend job.
    We use Swagger for automated frontend-end stuff.

  • @_sevelin
    @_sevelin 3 года назад +6

    Great video! Now I can REST in peace!

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

    I should've watch this before I take my assessment in Spring. Now I fully understand what an API does

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

    Well explained 👌

  • @a.human.
    @a.human. 2 года назад

    As an absolute beginner trying to wrap my head around all these new concepts covering backend tech, I must say this video made the most sense out of all the other vids on yt on RESTful apis. So, thank you!!!
    Btw, anyone passing by this comment... any advice for someone like me who's trying to become a MERN stack dev?

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

    Thank you very much, its very educationg

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

    This is literally what I wanted to know. 10/10, would watch again.

  • @mangeshgupta5677
    @mangeshgupta5677 3 года назад +10

    At the age of calling girls, we are calling APIs 😂😅 and API also not giving any response 😂😂😂

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

    Do you believe in signs? Well, I'm starting to. I'm to start a project next week, an eCommerce site and I was planning to use Node as the backend and React on the frontend. I had no idea on how to create the backend, this video just came at the right moment. Thank you.

  • @Wakkyguy
    @Wakkyguy 3 года назад +3

    Golang 100 seconds and beyond!

  • @YAVUZMOLLAHAMZAOĞLU
    @YAVUZMOLLAHAMZAOĞLU 11 месяцев назад +1

    what a wonderful piece of briefing video! thank u for it, i like your videos.

  • @ouss
    @ouss 3 года назад +3

    You should do one on Hasura for graphql, its way easier than rest

    • @Fireship
      @Fireship  3 года назад +3

      Hasura is awesome, I will make that video eventually.

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

    This video was perfectly timed! I just started working on Express in my bootcamp. Thanks for the helpful video!

  • @mohammadtalha2336
    @mohammadtalha2336 3 года назад +9

    port in 100 seconds

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

    The one thing I wanted to learn today and there's a video about it in my notifications already lol

  • @JackiePrime
    @JackiePrime 3 года назад +3

    My wife hired a PI because she thought I was having an affair. Truth was I rented the motel to take a rest because I was full after lunch. She sued me and now I’m being transferred to state prison because I decided to represent myself. I can even post bail so I’m staying put.

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

    This was perfect, timewise and feature wise for me to test something out. I didn't want to spend hours working through a tutorial! I am new to this channel, but I subscribed and liked this video. I'll have to check out your other videos too. I have a feeling I am going like them too!

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

    I never watched any of your coding tutorials, wow you literally explain everything thank you!

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

    The level of how you providing content is awesome. This is really inspiring.

  • @zero-lpds
    @zero-lpds 3 года назад

    You what I haven't seen until now in these types of videos (from others). The distinction between URI and URL. I

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

    this couldn't have come at a better time!
    Dude you ROCK!

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

    Man, I can't thank you enough for this excellent tutorial! Best in class, keep 'em coming!