Make your own mock API (super simple)

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • ⭐ Sign up for my Full Stack Developer Course: www.codewithan...
    Hello everyone! In this weeks video I show you how to make your own RESTful API and deploy it onto the internet in just a few easy steps. This is thanks to the github.com/typ... package. Where you can get a mock REST API with zero coding in less than 30 seconds.
    For those of you who would like to add a burger, please make a pull request here, following the same format as discussed: github.com/kub...
    For those of you wishing to check it out live visit here: my-burger-api....
    A lot of you are wondering if you can interact with this database. Yes you can. You can make GET, POST, PUT, DELETE etc requests to it. You can even get an individual burger. For example if I want to get the Tribute Burger, which has an ID of 0, I would write:
    fetch('my-burger-api....) etc....
    Please try adding a burger to the database, deleting a burger, it's up to you. Give it a go in your console logs.
    If you did like this video, please hit the Like and Subscribe button so I know to make more!
    Twitter: / ania_kubow
    CZcams: / aniakubow
    Instagram: / aniakubow
    #burgerAPI

Komentáře • 405

  • @aniakubow
    @aniakubow  Před 3 lety +60

    A lot of you are wondering if you can interact with this data. Yes you can. You can make GET, POST, PUT, DELETE etc requests to it. You can even get an individual burger. For example if I want to get the Tribute Burger, which has an ID of 0, I would write:
    fetch('my-burger-api.herokuapp.com/burgers/0')
    .then(response => response.json())
    .then(data => console.log(data));
    Please try adding a burger to the database, deleting a burger, it's up to you. Give it a go in your console logs. :)
    I would say this is for project use ONLY, as your POST,PUT and DELETE requests will not be 'stored' as we don't have a database.

    • @alluringgrace413
      @alluringgrace413 Před 3 lety +1

      how would we use the deployed api in the video with postgres db heroku. I have a web app that is calling to api. This api is like the one in the video, so it's getting modified, but after a while the data is lost. Thanks.

    • @fallenslave6684
      @fallenslave6684 Před 3 lety

      Living Waters youtube channel

    • @martDKNY
      @martDKNY Před 3 lety +3

      You so beautiful

    • @MusicIsLifeFM
      @MusicIsLifeFM Před 3 lety +1

      interesting but a bit confusing as you are using another site. It's like you are checking postman to see your array. I'd love to see an actual site.

    • @LFMmmelesi
      @LFMmmelesi Před 3 lety

      @@alluringgrace413 after 24 hours heroku clears storage, check digital ocean for persistent storage...

  • @liebranca
    @liebranca Před 3 lety +18

    "make sure everything's in line so it's easier to read". YES. EXACTLY. THANK YOU.

  • @thelma2084
    @thelma2084 Před 3 lety +5

    I learn by doing things really quickly to completion which gets me comfortable with going back and learning all the details. For that purpose this tutorial was perfect, thank you so much.

    • @aniakubow
      @aniakubow  Před 3 lety +1

      You are so welcome Thelma! Glad to be part of your coding journey :)

  • @rusa4916
    @rusa4916 Před 3 lety +13

    It's been a while since I've watched it but it's growing.

  • @user-ef5gt8so8b
    @user-ef5gt8so8b Před 2 lety +5

    Ania, thank you so much again. I've been learning so many things from you already and you make it so much fun to learn. And plus, you are teaching all these details, that are very helpful for self-learners like me. I have to pause and rewind your videos every few seconds cuz they are full of useful information.
    Learning Javascript by making simple games is super fun with you and the API video comes in so handy now, since I am trying to make a website and an iOS web for learning German and I've just learned how to use APIs making a Pokedex on several platforms LOL
    I appreciate your efforts in constantly providing us with new content. Being a developer and cutting YT videos at the same time you probably don't have much spare time.

    • @aniakubow
      @aniakubow  Před 2 lety +1

      Thank you so much that is super kind of you to say!

  • @chiwhitesox56
    @chiwhitesox56 Před 3 lety +13

    This is so cool!! I'm learning React right now and I can't wait to try this to make some mocks for testing. Looking forward to seeing what else your channel has to offer. Thanks so much!

    • @aniakubow
      @aniakubow  Před 3 lety +2

      Amazing!!! I really appreciate you taking the time to leave some kind words. You rock 👊😃

    • @kennedyfreitas7548
      @kennedyfreitas7548 Před 3 lety

      same here dude

  • @lxxmi_
    @lxxmi_ Před 3 lety +10

    Thanks for the tutorial, at first I wondered why you didn't set up routes using express or using http and send the json response data, but on researching about json-server got to know how quick and easy it is to set up an API this way.
    Been following your videos, great work, expecting more cool react, vanilla js stuff like these!

  • @daveperry7179
    @daveperry7179 Před 3 lety +4

    This is fantastic and exactly what i have been after so i can build a few apps prior to sinking deep into full back end. Now to accessing this data in my projects! Thank you so much Ania

    • @aniakubow
      @aniakubow  Před 3 lety +1

      You are more than Welcome Dave! Thank YOU for taking the time out to write such a lovely comment 😄

  • @gizemcoskun5334
    @gizemcoskun5334 Před 3 lety +4

    yaa that's amazing thank u sooo much!! after a few days of struggle, i was able to solve it thanks to you. i'm so happy

  • @kennedyfreitas7548
    @kennedyfreitas7548 Před 3 lety +1

    i just found this video, haven't watched it yet but i already love it, love your beautiful and kind soul, thank youuuuuuuuuuu

  • @yalla_caguetrades4140
    @yalla_caguetrades4140 Před 3 lety +81

    i like burgas

  • @getfree6736
    @getfree6736 Před 3 lety +15

    What is this... a super-model... programmer?
    SUBSCRIBED!!

  • @donnywb
    @donnywb Před 2 lety

    Ania, you are the CZcams Code Queen. Keep doing these. Great stuff! And if you ever feel bored and would like a cool, challenging project that will help a lot of people, shoot me a note. Let's talk. Cheers!

  • @Liphted
    @Liphted Před 2 lety +1

    Yo, Ania really is the dragon queen of coding 😂.

  • @pascalbenn4839
    @pascalbenn4839 Před rokem +1

    Hey Ania, this is awesome - I'm following it to create my first API. I am 100% newbie so great easy instructions.

  • @techlead...
    @techlead... Před 3 lety +4

    Cool, I just completed a course on Postman and really looking forward to this project 🙏🏻🌟

  • @onestepwebdev
    @onestepwebdev Před 3 lety +4

    Good morning Ania, thanks for posting. My internet connection seems to be a little flakey this morning, I'll watch this later.

    • @aniakubow
      @aniakubow  Před 3 lety

      so strange - a few people said the video was being flakey in the premiere! Thanks for watching anyway :)

  • @ronn1023
    @ronn1023 Před 2 lety +1

    Just discovered your channel, you are brilliant! Watching your content makes the whole backend dev thing seem doable! Keep up the good work!!

  • @idevbrandon
    @idevbrandon Před 3 lety +1

    Cool! I made my own stock-api as an open source too. Thanks for great contents on YT!

    • @aniakubow
      @aniakubow  Před 3 lety +1

      Very cool! Thanks for watching :)

  • @dominiquebello3212
    @dominiquebello3212 Před 3 lety +2

    Coool! I'll soon create an API with pictures for a photograph's site connected with Dropbox... First steps easier with your clear explanations 👍🤩👍

    • @aniakubow
      @aniakubow  Před 3 lety

      yes! Share it with us when you are done :)

    • @dominiquebello3212
      @dominiquebello3212 Před 3 lety

      @@aniakubow work not started yet but in progress with the design 😁 Thanks Ania 🌟

  • @rahulraidas9481
    @rahulraidas9481 Před 3 lety +3

    Oops waiting for this series, thanks anie🙏🙏❤️❤️❤️❤️

  • @emmahindmarch5754
    @emmahindmarch5754 Před 3 lety +3

    Looove this simple explanation! I know some good burgers, so I'll create a pull request soon.

    • @aniakubow
      @aniakubow  Před 3 lety

      yes please do!

    • @emmahindmarch5754
      @emmahindmarch5754 Před 3 lety

      @@aniakubow do they have to be in the UK or are we going international?

    • @aniakubow
      @aniakubow  Před 3 lety +1

      @@emmahindmarch5754 ooooohhhh were going international with this!!!! haha LETS GO WILD

    • @emmahindmarch5754
      @emmahindmarch5754 Před 3 lety

      @@aniakubow awesome! Expect some French ones then 🇫🇷

  • @v-leo7766
    @v-leo7766 Před 2 lety +1

    You rock - enjoyed that and did not put me to sleep like other vidz....im making a burger to celebrate.

  • @anshrathod
    @anshrathod Před 3 lety +2

    Oh wow,i really wanted an api video.Thank you .

  • @stfalx
    @stfalx Před 3 lety +2

    At first i was like ... buggers ? while reading the comments ... then i scrolled up! Also you are amazing! Thanks for the content!

    • @aniakubow
      @aniakubow  Před 3 lety +1

      hahahaa I know I never realised I can't say the word burger 😂🍔! Thanks for watching Regis :)

  • @TheBotEmpire
    @TheBotEmpire Před 3 lety +1

    Missed the live event but just caught up... great video as always Ania, your style of teaching is amazing looking forward to the next video

    • @aniakubow
      @aniakubow  Před 3 lety

      You are so welcome! Thanks so much for the kind words!

  • @Meljuulie
    @Meljuulie Před 3 lety +1

    I really enjoy your video's! I like how you talk us through how you think and work, very helpful :)

  • @baileysimrell4946
    @baileysimrell4946 Před 3 lety

    Thanks for showing the deployment setup. Always the trickiest part for me

  • @minvac7784
    @minvac7784 Před 3 lety +2

    I really love your energy!!! Thanks a lot for this yt channel

  • @chrisandrew_tv
    @chrisandrew_tv Před 3 lety +4

    "There's no such thing as a perfect wom-" **Ania builds burger API**
    Great as always. Be nice to see a video where you add a schema, a way for visitors to submit their burgers, and db validation for submissions. Let's get this API growing!

  • @facu5563
    @facu5563 Před 3 lety +6

    "United Kingdon" :D hahaha
    Great video as always!
    Cheers from Arg

    • @aniakubow
      @aniakubow  Před 3 lety +3

      Hahaha such a typo - glad I fixed it otherwise it would be driving me crazy

  • @jacqueslavoie6392
    @jacqueslavoie6392 Před 3 lety

    What a wonderful breath of fresh air you are. More vids Please.

  • @aoctut
    @aoctut Před 3 lety +5

    +Great tutorial. An interesting extension would be to build a React UI for the API. 🙏

  • @kaelijadaka
    @kaelijadaka Před 2 lety

    Learning about API's now and this video was fun to practice making one and getting a better understanding of how they work.

  • @mikeysauce393
    @mikeysauce393 Před 3 lety +1

    Thank you for teaching us, from sunny southern California, USA. Cheers mate ;-)

    • @aniakubow
      @aniakubow  Před 3 lety

      I need some sun! And, you are very welcome :) thanks for watching!

  • @alain_laroche
    @alain_laroche Před 3 lety +2

    Super useful thanks! How would you connect this API to a Simple Front End? Also, is the Back End NodeJS? Sorry i'm kinda learning this stuff right now ;)

  • @mjKeszely
    @mjKeszely Před 3 lety +1

    Wow, to chyba pierwszy wartościowy kontent jaki algorytm CZcams wywalił mi na główną :)

    • @aniakubow
      @aniakubow  Před 3 lety

      Ah dziękuje ślicznie!!! Super to usłyszeć 🥰🤩

    •  Před 2 lety

      @@aniakubow Trafiłem tu tak samo... zostanę na dłużej :) Dzięki za materiał!

  • @ajalanbrown2200
    @ajalanbrown2200 Před 3 lety

    thanks i just deleted files and created along with you in the video such a huge help! thanks!

  • @Snellius_
    @Snellius_ Před 3 lety +3

    had to pause the video at first I thought you said you had to get the debuggers and the names i was hearing Debuggers until my mind start to process it and to find out is was burgers

    • @aniakubow
      @aniakubow  Před 3 lety +1

      haha , yes 🍔, not debuggers sadly!

  • @segovia102
    @segovia102 Před 2 lety

    Worked for me. Missed out the 'node' from 'node server.js' but figured it out by looking at your GH. Thanks!

  • @ayushibanode681
    @ayushibanode681 Před 3 lety +1

    just wait for your new videos everytime you are such an inspiration

    • @aniakubow
      @aniakubow  Před 3 lety

      Thanks for watching!!!! It means so much - big love

  • @zwc76
    @zwc76 Před 3 lety +1

    Love it. Smart choice by going with json api instead of express, sonce would need to add a lot of extra code to get everything in working order, Just one thing, there was a typo just in the start of the video, you first tried installing json-api, but after adding the registry, you installed anothet library called 'json' instead. Cheers!

    • @aniakubow
      @aniakubow  Před 3 lety +2

      Thanks so much Bernhard!! I know I saw that after I uploaded 🤦🏼‍♀️ - nightmare. But hopefully people would have followed the first step and with the correct package, so it shouldn’t cause problems. Happy to have you on my channel 🙌🏻🙌🏻🙌🏻

  • @Jim_Kay.
    @Jim_Kay. Před 2 lety

    This was great help for one of my portfolio projects (and ones to follow!). Cheers Ania!

  • @gianni.chiarello
    @gianni.chiarello Před rokem

    I honestly thought you were saying "bugger"..."where I can find the bugger" etc...burger...I see, it makes sense now.

  • @emkbacon
    @emkbacon Před 3 lety

    Without Ania's videos I'd be so lost

  • @compton8301
    @compton8301 Před 3 lety +1

    Thank you! :) Watching all the way from South Africa.

  • @OstonCodeCypher
    @OstonCodeCypher Před 3 lety +1

    I wish each they had included thumbnails. Either the restaurant front or the burger it's self.

  • @amaldev4150
    @amaldev4150 Před 2 lety

    bugger api, next billion dollar business, all jokes aside nice tutorial.

  • @imrannazir6931
    @imrannazir6931 Před 3 lety +1

    Such great communication skills 👍🏼

  • @francescociulla
    @francescociulla Před 3 lety +2

    Hellooo!! A lot of Burgers here!

  • @josetuz
    @josetuz Před 3 lety

    I use json-server with Ngrok and it work great! Thanks for sharing!

  • @thomas-ek1xi
    @thomas-ek1xi Před 2 lety

    EXACTLY what I was looking for. Thank you!

  • @robhartle1849
    @robhartle1849 Před 3 lety +2

    Ania, you're a gift to the dev community. ❤️ your 🧠 and content. Keep those bugahs coming!
    Edit: ❤️ your 👀 too

    • @aniakubow
      @aniakubow  Před 3 lety

      Ah rob that’s too kind !!!!! Booorgahs all round on me haha

  • @Pixel_Recap
    @Pixel_Recap Před 2 lety +1

    hi Ania Kubów,
    your tutorial is great. so can you make a video about building an API step by step with explaining?

  • @allisonscanlan4144
    @allisonscanlan4144 Před 2 lety

    Never heard it called baggas before but thanks for the video!

  • @alex-dc2zx
    @alex-dc2zx Před 3 lety +14

    i just love bargars mjam :)

    • @lovor01
      @lovor01 Před 3 lety +3

      No, it is pronounced buggers!

  • @ramalsrougi
    @ramalsrougi Před 3 lety

    You're one of my favourites 😍🙌
    Thank you, charming Ania ❤

  • @Bukit34
    @Bukit34 Před 3 lety +2

    Hi Ania, many thanks for your tuto.
    In my case to deploy into Heroku I had to use:
    git push heroku HEAD:master
    BR.

  • @shubhamgarg5007
    @shubhamgarg5007 Před 3 lety

    Thanks for such a good explanation, I came here to see how to create APIs and whether it's possible to make and deploy APIs without using node.js , but there are no shortcuts to success 😅

  • @aaryanporwal
    @aaryanporwal Před 3 lety +1

    Love this topic! And keep making videos on how to 'make' stuff!

  • @eXpIOring_wOrIds
    @eXpIOring_wOrIds Před 3 lety +1

    Glad I found this channel! Thank you 😊

  • @JS-ir7wh
    @JS-ir7wh Před 3 lety +1

    You probably know there is terminal in vscode. Thanks for making this video!

    • @aniakubow
      @aniakubow  Před 3 lety

      You’re so welcome !! Thanks for watching 💙

    • @a-roh5039
      @a-roh5039 Před 3 lety

      Of course she knows that

  • @user-ro1cs5hp5e
    @user-ro1cs5hp5e Před 3 lety +1

    very useful video thanks for taking ur time in creating such good content!

  • @TheNamesJT
    @TheNamesJT Před 3 lety

    Umm, the thing is you have to manually add the data in your database. Like, you could install puppeteer and code a scraper to scrape a website to auto grab some of the data and have it auto save into your director as a json file using node filesystem. Which I have done in the past but, i'm not sure the legallity of scraping website you might need to look in the terms of service of the website you want to scrape to see if its legal ect.

  • @gorilaboy9687
    @gorilaboy9687 Před 3 lety

    we will support your contribution

  • @khalidkhan5308
    @khalidkhan5308 Před 3 lety +1

    Always come for Ania beautiful voice and accent ***

  • @mophez
    @mophez Před 2 lety

    Interesting choice of vid thumbnail. I need to go now.

  • @MrMelquize
    @MrMelquize Před 3 lety +1

    Thanks Ania for the content!

  • @abdulsalamquadriolasunkanm9944

    Thanks a lot for this. Exactly what I’m looking for. So helpful. I really appreciate

  • @alijafri9372
    @alijafri9372 Před 3 lety +5

    Love those Burgas!

  • @be-kreidly1515
    @be-kreidly1515 Před 3 lety

    Thank you Ania for the awesome explanation! keep it up. it seems you have a hobby doing Burgers :p

  • @troybryantIII
    @troybryantIII Před 3 lety +1

    great stuff but some of us still do use windows so just few references to the windows commands would be great other wise packed full of content thank you

  • @maplestoryinchinese
    @maplestoryinchinese Před 3 lety +9

    Finally a tutorial done by a WOMAN. We need more women in tech.

    • @aniakubow
      @aniakubow  Před 3 lety +1

      yeaaaaa! Did you know only around 9 percent of my audience is female (according to CZcams) - and apparently that is a high percentage according to my Dev CZcams pals!

    • @peanutz8638
      @peanutz8638 Před 3 lety

      @@aniakubow you just got another female audience right here! haha love your content and burgers :)

  • @SanchitKalra007
    @SanchitKalra007 Před 3 lety +2

    Where can I get that Terminal theme? Looks kinda cool.

  • @TheWorldGameGeneral
    @TheWorldGameGeneral Před 2 lety +1

    To auto Format in vs code the shortcut is Alt + shift + F

  • @thesouthsidedev1812
    @thesouthsidedev1812 Před 3 lety

    Project blowing up

  • @ahmedehab6750
    @ahmedehab6750 Před 3 lety

    wow, simple and to the point, great tutorial, you got yourself a new subscriber, waiting for your new stuff 😊

  • @aashiqahmed5273
    @aashiqahmed5273 Před 3 lety +1

    I'm learning javascript because of you ❤️😭

    • @aniakubow
      @aniakubow  Před 3 lety +1

      Yessss! I’m glad I can persuade you haha

  • @elaracheaymane4762
    @elaracheaymane4762 Před 2 lety

    This is sooo sooo cool , thank you for this amazing video , it was very helpful for me

  • @mohamedatef97
    @mohamedatef97 Před 3 lety +1

    This was so cool video. Thank you very much. 👍💖

    • @aniakubow
      @aniakubow  Před 3 lety +1

      You’re very welcome Mohamed!

  • @AlEgorova
    @AlEgorova Před 2 lety

    It's working! Thanks a lot!!! ))))

  • @75STARFISH
    @75STARFISH Před 3 lety

    Love the tutorial, I am an intermediate programmer and this really helped out with my understanding of APIs . Just out of interest, which is better Moochies or Nandos?

  • @samriddhikumarr
    @samriddhikumarr Před 3 lety +1

    I'm so grateful to have found your channel in my final year of engineering! ❤️

    • @aniakubow
      @aniakubow  Před 3 lety +1

      I’m grateful to you for watching ! Big love

  • @mehditouil7702
    @mehditouil7702 Před 3 lety

    Hello,
    We could even bring a working function to help you understand the working process.
    You should be a certified person sounds great.
    Good luck

  • @kizitodaka9417
    @kizitodaka9417 Před 3 lety +1

    Thank you ma'am
    GOD bless you/us all✊👐

  • @CharlesJacksonBey
    @CharlesJacksonBey Před 3 lety +1

    excellent workshop

  • @lucia7974
    @lucia7974 Před rokem

    Hey Ania, thanks a lot for this superb tutorial! My question is what free alternatives can we use instead Heroku to deploy apps/apis? what would you recommend that is nice and easy? Thanks

  • @barneydk
    @barneydk Před 3 lety

    Thanks for this.. It's really useful. Got my Rest api working like a charm.. One question. in the last step, you use the "heroku create" to create the api, and then the same command again to create the project. Why do I need both steps, and what is the difference?

  • @rudinandrey
    @rudinandrey Před 3 lety +2

    I can't take my eyes off your eyes, so amazing!!!

  • @samithawijesekara
    @samithawijesekara Před 3 lety

    This is working perfectly..Thank you so much for sharing..!!!!

  • @FuzzkieMc
    @FuzzkieMc Před rokem

    Great stuff, Ania. I'm stuck at showing stuff in the API in nicely formatted HTML. Any help or links or hints for that? -- David

  • @incandescentbruh
    @incandescentbruh Před 3 lety

    my left ear loved this

  • @techoutlook9235
    @techoutlook9235 Před 2 lety

    Fantastic! Thank you so much.

  • @1JPIFF
    @1JPIFF Před 2 lety

    Awesome tutorial!!!

  • @Phantom1037
    @Phantom1037 Před 3 lety

    You are just amazing!!

  • @donutp3575
    @donutp3575 Před 3 lety +1

    thank you so much! you're amazing!

  • @deepak8586
    @deepak8586 Před 3 lety

    Its amazing thanks!!! learnt something new today!

  • @code4chaosmobile
    @code4chaosmobile Před 3 lety +1

    Great video. You have a new subscriber :)

  • @Shizzymynizzy
    @Shizzymynizzy Před 3 lety

    Ania you are the best

  • @nazarkosandiak9657
    @nazarkosandiak9657 Před 3 lety +1

    Thanks a lot!