Build a Weather App in VueJS | Vue Beginner Tutorial

Поделиться
HTML-код
  • Опубликовано: 11 янв 2020
  • Learn how to make a Weather app in Vue JS, we use the Open Weather Map API to make calls to a restful api to return the current weather data. This uses the Modern Javascript Fetch API along with Vue JS Methods and conditionals.
    A Javascript Project
    Day 12 #31Days31Videos
    // JOIN THE DISCORD
    / discord
    // MY GEAR FOR CODING AND RUclips
    Blue Yeti Microphone: amzn.to/3jr3l7T
    Microphone Stand: amzn.to/35B9LMN
    Chair: amzn.to/3dWds3F
    Thunderbolt Dock: amzn.to/3osBF6u
    Monitor: amzn.to/37I8KoR
    All of these products I own and have tested!
    Source Code: github.com/TylerPottsDev/weat...
    FOLLOW ME ON TWITTER!!!
    / tyler_potts_
    LIKE, SUBSCRIBE & SHARE
    Music
    DEAF KEV - Invincible (NCS Release)
    Neffex - Grateful (NCS Release)

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

  • @edita_gaming
    @edita_gaming 3 года назад +26

    Wonderful tutorial! Please keep it up, the world needs more of this ❤

  • @aesap_
    @aesap_ 2 года назад +21

    This was my first vue tutorial and this guy explained everything great

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

    Great Tutorial! This really helps understand the inner workings of vue with the fetch API

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

    Thank you so much, Tyler. This is a really great tutorial :D

  • @wagnerfix
    @wagnerfix 4 года назад +7

    Thank you so much, great example. This help me for to learn vue more.

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

    This was my first time playing with Vue. It was fun to have something up and running in less than an hour. Thank you for that!

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

    Great stuff! Thanks Tyler.

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

    Really awesome and satisfying to code, thank you !

  • @dudzpedra
    @dudzpedra 2 года назад +11

    just completed my second project of the day thanks to you! such a great feeling of accomplishment!

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

      Hi there! I have an assignment in school where I need to submit a Vue application. It sounds like you have mastered this task. It's a bit embarrassing for me to ask, but would it be possible for me to have a zip folder of your work?

  • @00el04
    @00el04 3 года назад +3

    Just found out your channel, subbed! I hope you can do more of these Vue.js videos in the future Tyler!

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

    Man this is just awesome :) you got a new sub to the channel! and honestly I was blown away from the quick styling of the web app!

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

    Thank you! This was really fun to make. I've only just discovered vueJS this week and was eager to find another project to try out. I'll try to include a search icon into the search bar and tinker with the weather box. And whatever else comes to mind.

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

    Cheers for the refresher :D

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

    Thanks for sharing! Please keep doing this tutorial

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

    thank you, it's really good idea for an app. Already subscribed and pushed the like button :)

  • @hackathon-bestmostar273
    @hackathon-bestmostar273 4 года назад

    Nice, you really helped me to understand vue.js more clear.

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

    Great tutorial. Thanks Tyler.

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

    I really appreciate your work, thank you.

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

    Thank you very much Tyler, it's amazing how fast you build. greetings from Chile .

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

    for starting to the vue this is great tutorial. Thanks.

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

    you're very fast and quick in CSS, subbed :)

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

    Thank you! Awesome Tuts

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

    Legendary, my friend! I was looking for reasons not to use Vue js, but you gave me reasons to. Thank you!

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

    Really enjoyed this tutorial, thank you 😄

  • @scientist.entity6609
    @scientist.entity6609 4 года назад +8

    Thank you so much for doing this lesson also with vuejs

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

    Amazing, i found your channel today!!!

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

    Awesome Video !! Thanks

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

    Hello Tyler, i want to thank you for these great tutorials! :) Keep up the good job with Vue.js/JS! Got a sub from me :)

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

    thank you Tyler. very informative.

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

    I'm doing this in my website development class and oh my lord I did not understand how to use Vue very well but I really want to say thank you because you made that so much easier then what I was thinking it was going to be. I actually have some understanding of it now and used a lot of what you did in my project and it works and looks so much better. Thank you so much!!

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

    Thanks a lot. You just earned another subscriber

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

    Really helped understand Vue, thanks

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

    Brilliant tutorial mate. Really good indeed!

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

    Great and simple tutorial (y) Keep it up

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

    Bro I love your tutorials thank you ^^

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

    This guy's tutorials are so clear

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

    Thank you! Helped my understanding of Vue. I would also appreciate if you make a video where props are passed between components in Vue

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

    Used this as a base for my 4th app in my quest to create 30 ionic vue apps in 30 days. I added moment js for the date and used unsplash for my images. Nice Tutorial. Thank you for your good work.

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

    Thanks a lot! Becuase of you i've done created this beautiful weather app.

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

    thanks for the tutorial! great stuff!

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

    This was a great one and supper easy to follow

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

    Great video, easy to follow style, if people don’t want to see the CSS they can skip through!

  • @ram-bk4mu
    @ram-bk4mu 3 года назад +1

    mad skills man!

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

    Really nice app you made...

  • @ICSVortex-DCS
    @ICSVortex-DCS 4 года назад +1

    Great video!

  • @Hijra.ma_
    @Hijra.ma_ 3 года назад +1

    Thank you so much

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

    awesome tutorial! :)

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

    Awesome tutorial

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

    Thank you bro, so useful video!

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

    Thank you very much!! very clear and very interesting. have a nice day!! :))

  • @MM-um1sq
    @MM-um1sq 3 года назад +1

    that was awesome, thanks.

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

    Thanks Thanks Thanks
    for the awesome tutorial.

  • @natarajana.v4262
    @natarajana.v4262 3 года назад

    Thankyou So much for this sir.

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

    This was one of the best Programming-Tutorials ever. I wish more would be like that one!
    For that great Video i left a subscription to your channel :)

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

    This tutorial is wonderful 💯🔥🔥🔥❤️

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

    Where do you get the url_base of openweather?

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

    great video!

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

    Amazing typing skill and sweet language ❤

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

    its beautiful

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

    Thanks for your nice Vue.js tutorial. 🙏

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

    bangin' m8, thanks for that. Learned a lot :) Wish we could build a game in Vue!

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

      I have a video on building a game in Vue 😂 can't remember which one it is but it's recent

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

    You made it simple, though not for beginners. I genuinely loved it and will re-visit again for more clarification.
    Thank you so much for making this sharable amongst us.

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

    Love from Nigeria 👍🏾

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

    Excellent work, thank you! I'm seriously hooked on your channel! I just wanted to add that if we move the checks from the template to the computed properties, then the template looks cleaner

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

    the real frond end, good job

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

    Super useful I hope you can come up with more basic tutorials

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

    You are amazing bro, same website different technologies so we understand it better

  • @750Kviews
    @750Kviews 4 года назад +1

    Slick Design man

  • @amjadal-hallak3145
    @amjadal-hallak3145 2 года назад

    thank you Mr.

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

    wonderful!!!!1 thanks

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

    Great video!
    for the dateBuilder() method consider using moment.js... you could do something like:
    dateBuilder() {
    return moment().format('dddd D MMMM YYYY');
    }
    cheers
    edit:
    install moment by doing `npm install moment --save`
    then import it in your App.vue file `import moment from 'moment';`

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

    great tutorial thank you :-)

  • @szebasztianlukity8705
    @szebasztianlukity8705 Год назад +3

    Hey Tyler. Great project, loved it. I just wanted to point out that you should think about increasing the font size. Keep up the good work!

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

    Was not expecting Northampton to get a shoutout in this vid, went from a 9/10 to a 10

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

    Great tutorial! Random question, where did you get that desktop wallpaper? I wanted something just like it but couldn't find one anywhere.

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

    perfect video :d

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

    Please note that removing the &units=metric entirely will return the temperature as Kelvin. To get Fahrenheit use &units=imperial

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

    You can first set 'weather' as null, so to display a div you need only v-if="weather", weather will be as a true after fetchWeather method

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

    I'm Vue beginner and Thank you for your awesome video!! I'm in discord channel also. I like your speed of video. Have a nice day.

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

    what a CSS master

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

    thank u so much

  • @Pages_Perfected
    @Pages_Perfected 10 месяцев назад

    Nice video and very nice accent !

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

    Few looks cool.

  • @user-nd2pv6ip5l
    @user-nd2pv6ip5l 4 года назад

    cool!!!!!!!!!!
    I like that!

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

    Nice tutorial.

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

    Awesome work! Do you think you could make one that elaborates on the function that fetches and sets the API data?

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

    Thank you a lot!
    I have 15.6 inches monitor and the letters of the code seem small and not easy to read. Is it possible to enlarge the fonts or anything other to fix it?
    If not, ok I can zoom my browser.

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

    thank you

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

    Hello,
    I followed the video (only used different API) and the weather object is always undefined, by doing some testing seems like the method .setResults doesn't get executed.
    Anyone can help me?

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

    thanks bro

  • @baldbankrupt
    @baldbankrupt 4 года назад +7

    Hey, great video!!
    Instead of fetching the results and push it with another function to the weather object I'd use an async function for both of it:
    async fetchWeather(e){
    if (e.key == "Enter") {
    let response = await fetch(`${this.url_base}weather?q=${this.query}&units=metric&APPID=${this.api_key}`);
    let json = await response.json();
    this.weather = await json;
    }

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

      Thanks

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

      .then() call automatically awaits for the prev async function to finis

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

      is it possible to change the video background instead of image ? i mean accouding to the weather condation ? if yes can you help me please ?

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

    Which event i have to used instead of keypress to show weather automatically after user enter city

  • @00el04
    @00el04 3 года назад +4

    where did you get weather.main? is that on the API response?

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

    Thank you

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

    Is it possible to make the search field autocomplete and that it gave some suggestions in a dropdown list?

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

    How do we make live search results below the search bar as we type?

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

    Sorry,
    May I ask what font color you are using ( One Dark Pro ) ?? Thanks

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

    Təşəkkürlər

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

    Is it safe to put your api key in a data object/method in a Vue application?

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

    which vs code theme were you using ? Very good video