RESTful APIs in 100 Seconds // Build an API from Scratch with Node.js Express
Вставка
- Опубліковано 18 лют 2021
- What is an API? What is REST? Learn how an Application Programming Interface (API) can adhere to Representational State Transfer (REST) to enable reliable communication between apps fireship.io/tags/node/
👕 Best comment wins a free T-shirt (read fine print at end of video)
Open API Spec swagger.io/specification/
Request Methods developer.mozilla.org/en-US/d...
#api #js #100SecondsOfCode
Install the quiz app 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font - Наука та технологія
Front-end Dev: fix your responses!
Backend Dev: fix your requests!
meanwhile fullstack devs, jaja mere mortals
until you notice that a rest api requires json as input and outputs xml
And that's how hatred cycle continued 🤣
User: Fix your app!
@@rifaldhiaw Tester : "We found a bug"
Manager: Why isn't your APIs responding?
Me: Its RESTing
for how long ?
Good one haha
@@user-gu5ts5nx8r for eternity
Friggin legendary
@@hermes6910 which means no more business.
It's incredible how much you can explain and transmit in 100 seconds while others cannot reach an idea in 40 hours courses.
hey there.
the what, why how
of
express node jWT and other allied technologies within the ecosystem.
In a NutShell.
ua-cam.com/video/CNVtR0WgKDc/v-deo.html
LIKE, SHARE and SUBSCRIBE to the channel for more.
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.
not even one redundant word in any sentence. much appreciated for well thought out and articulated education.
@@Konslufius people aren't RESTfull, the way data goes between humans is not fun.
that’s what i was going to say😮😮.
Interviewer: What is a REST API?
Candidate: API that follows the rules of RESTful
Interviewer: You hired!
Enough?
Lol😂😂
Enough?
Lol😂😂
the what, why how
of
express node jWT and other allied technologies within the ecosystem.
In a NutShell.
ua-cam.com/video/CNVtR0WgKDc/v-deo.html
LIKE, SHARE and SUBSCRIBE to the channel for more.
I love this. Straight to the point and extremely clear - I was searching for days for something like this! Thank you!
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.
“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
TIL IBM was founded in _1911_ ?!? Wtf?
@@nothingnoone8752 Yeah, for one reason they are critiqued for helping the Nazis, might wanna check that out.
It's cooler 1925, but should say 1975: ibm.com/downloads/cas/1V29LE4Z
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!
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
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!
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!
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.
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 !
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.
This is by far the most clear and straightforward tutorial I've ever come across. Thank you so much 🔥🔥
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!
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: !!!!!!!
10:59 YES, I (we?) want a full tutorial :)
We do indeed!
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.
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!
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
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.
This channel is gold! I learned more in 10 minutes from you than in a couple of hours reading sparse documentation. Thak you!
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!
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
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.
Well done! That was quick, send me an email or DM on slack with your size and mailing address 👕
@@Fireship thank you 🤩
Uhhh
If the only tool in your toolbox is a hammer, every problem somehow seems like a nail.
@@SirDamatoIII my mans breaking the fourth wall of philosophy here
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
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. 🤞
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.
all of those jokes are tiring me, i need to REST :D
SMH
Give it a rest
@@iEv0lv3_ smh
This left me feeling kinda RESTless
God why
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!
This video was perfectly timed! I just started working on Express in my bootcamp. Thanks for the helpful video!
418 is the "I'm a teapot" response code, nice xD
Twitter also have a 420("enhance your calm) status code for rate limit request xD
@@w1d3r75 haha nice X)
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.
MongoDB is the best ❤
Love your video dude! It was taught to us for hours and I didn't understand anything but here in just - 100 seconds
The quality of your videos is just excellent. Keep up the great work 🙏
Whenever there is a new Fireship video, I feel like Neo when he's about to learn Jiu-Jitsu
I'm a front-end dev (Angular), I find your video simple and straightforward. Thank you!
The level of how you providing content is awesome. This is really inspiring.
Thank you so much, there are so many guys want to explain a concept in “simple” term but actually mess easy things up
The knowledge you pass on isn't comparable in value with a T-Shirt.
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.
Man, I can't thank you enough for this excellent tutorial! Best in class, keep 'em coming!
Knew about REST but would love to hear more about the API configuration part at the end!
Absolutely brilliant! Thank you sooo much for this lesson! :)
I have been going through multiple chanel since 10 days but got complete required knowledge in this single vide. Thank you so much❤❤❤
I never watched any of your coding tutorials, wow you literally explain everything thank you!
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? )
A full tutorial on APIs please! Love the content.❤️
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?
It's crazy how he always post a video about a topic that I just have been researching or learning at school 🤯
Your tutorials are really nice, thanks for taking time for making these series and videos
Haha, I wrote my exam about REST-APIs a few hours ago :D
wow colleges teach about all those !?!?
Moin, auch Deutsche hier. Nice
@@freshesfaultier5087 Bratwurst
Do you have it in your college curriculum?
@@freshesfaultier5087 klaaar
Really appreciate you going into details what each part of the code is doing. Like the call back in the get and the Middleware function etc. Tyvm
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.
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.
You nailed it brother. Well done! Thumbs up (Y)
I've been using REST APIs forever without knowing the underlying logic! Thank you so much for this video!
An crystal clear explanation of writing an API with Node.js and Express!
I would really love to see the full API Gateway configuration!
gRPC in 100 seconds please!
I'd prefer a video on RPC first and then explain the role of gRPC
I came here to say this.
RPC
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!
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
Yes, I want to see a full tutorial on that subject.
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?
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
Honestly, this is the best explanation of restful apis I've ever seen.
Simple explanations in a super well-formatted videos from you always. Love your content. Thanks. See you soon!
The time a video lasts hasn't even passed yet. Clearly didn't watch the whole thing.
@@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.
@@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.
@@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.
Fireship: I don't like code generators
Also Fireship: Let's generate some React Components
Also Fireship: Let's generate an Electron App
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!
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
Well explained 👌
ORM in 100 seconds please! More specifically sequelize if possible
As someone new to all of this, man, this was a blessing!
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 ❤️❤️
Oh sometimes API needs to REST
I need a rest from APIs lmao
REST assured it will get it one day.
I'm here in 15 seconds, never been this early!
Damn I just wrote one of those this week!! Hadn’t used Express before and was very pleased with how straightforward it is.
this couldn't have come at a better time!
Dude you ROCK!
Great video! Now I can REST in peace!
Golang 100 seconds and beyond!
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.
Creating and maintaining these is my job. Specifically applied for a non-frontend job.
We use Swagger for automated frontend-end stuff.
Thank you very much, its very educationg
You should do one on Hasura for graphql, its way easier than rest
Hasura is awesome, I will make that video eventually.
This was the exact visualization I needed. Thank you.
Dude I love you for this. Thank you, I never realised how easy this would be . You just got a new subscriber
port in 100 seconds
At the age of calling girls, we are calling APIs 😂😅 and API also not giving any response 😂😂😂
They are resting, we can call them when they wake up lol
i love you're videos. they are always so compact and spot an.
thnks a lot, man your explanations are great, i've understood everything you said with absolutely 0 knowledge in JS, keep up you're doing greate !!!!
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.
Thank you! I appreciate your vids man. Keep up the great work!!
You what I haven't seen until now in these types of videos (from others). The distinction between URI and URL. I
This has been a long awaited video for me... Thanks for making the video ❤️
Thank you so much for the incomparable l'évolution of simplicity ❤
Great 10min of Knowledge. Fast and Efficient
This is literally what I wanted to know. 10/10, would watch again.
This was great. Visuals always make it so much easier to understand.
Thank god we actually need practical examples like these....it actually give me a desire to go and use nodejs ..i always use flask and django..never hit me to use nodejs