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)
Wonderful tutorial! Please keep it up, the world needs more of this ❤
Thank you! :D
This was my first vue tutorial and this guy explained everything great
Great Tutorial! This really helps understand the inner workings of vue with the fetch API
Thank you so much, Tyler. This is a really great tutorial :D
Thank you so much, great example. This help me for to learn vue more.
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!
Great stuff! Thanks Tyler.
Really awesome and satisfying to code, thank you !
just completed my second project of the day thanks to you! such a great feeling of accomplishment!
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?
Just found out your channel, subbed! I hope you can do more of these Vue.js videos in the future Tyler!
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!
Awesome, thank you!
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.
Cheers for the refresher :D
Thanks for sharing! Please keep doing this tutorial
thank you, it's really good idea for an app. Already subscribed and pushed the like button :)
Hero!
Nice, you really helped me to understand vue.js more clear.
Great tutorial. Thanks Tyler.
I really appreciate your work, thank you.
Thank you very much Tyler, it's amazing how fast you build. greetings from Chile .
Thank you very much!
for starting to the vue this is great tutorial. Thanks.
you're very fast and quick in CSS, subbed :)
Thank you! Awesome Tuts
Legendary, my friend! I was looking for reasons not to use Vue js, but you gave me reasons to. Thank you!
Really enjoyed this tutorial, thank you 😄
Thank you so much for doing this lesson also with vuejs
You're welcome!
Amazing, i found your channel today!!!
Awesome Video !! Thanks
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 :)
thank you Tyler. very informative.
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!!
Thanks a lot. You just earned another subscriber
Really helped understand Vue, thanks
Brilliant tutorial mate. Really good indeed!
Thank you! Cheers!
Great and simple tutorial (y) Keep it up
Bro I love your tutorials thank you ^^
No, Thank you! :)
This guy's tutorials are so clear
Thank you! Helped my understanding of Vue. I would also appreciate if you make a video where props are passed between components in Vue
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.
Thanks a lot! Becuase of you i've done created this beautiful weather app.
thanks for the tutorial! great stuff!
Glad it was helpful!
This was a great one and supper easy to follow
Thank you!
Great video, easy to follow style, if people don’t want to see the CSS they can skip through!
Glad you liked it!
mad skills man!
Really nice app you made...
Great video!
Thanks!
Thank you so much
awesome tutorial! :)
Awesome tutorial
Thank you bro, so useful video!
Glad it was helpful!
Thank you very much!! very clear and very interesting. have a nice day!! :))
Thank you! You too!
that was awesome, thanks.
Glad you liked it!
Thanks Thanks Thanks
for the awesome tutorial.
Thankyou So much for this sir.
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 :)
same opinion
This tutorial is wonderful 💯🔥🔥🔥❤️
Thank you 🙌
Where do you get the url_base of openweather?
great video!
Amazing typing skill and sweet language ❤
its beautiful
Thanks for your nice Vue.js tutorial. 🙏
You are welcome
bangin' m8, thanks for that. Learned a lot :) Wish we could build a game in Vue!
I have a video on building a game in Vue 😂 can't remember which one it is but it's recent
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.
Glad it was helpful!
Among us
Love from Nigeria 👍🏾
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
Thanks for that!
the real frond end, good job
Thanks
Super useful I hope you can come up with more basic tutorials
You are amazing bro, same website different technologies so we understand it better
Thanks and welcome
Slick Design man
Thanks!
thank you Mr.
wonderful!!!!1 thanks
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';`
great tutorial thank you :-)
You are welcome!
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!
Thanks for the tip!
Was not expecting Northampton to get a shoutout in this vid, went from a 9/10 to a 10
Great tutorial! Random question, where did you get that desktop wallpaper? I wanted something just like it but couldn't find one anywhere.
perfect video :d
Thanks!
Please note that removing the &units=metric entirely will return the temperature as Kelvin. To get Fahrenheit use &units=imperial
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
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.
Awesome, thank you!
what a CSS master
Thanks! 😂
thank u so much
Nice video and very nice accent !
Few looks cool.
cool!!!!!!!!!!
I like that!
Nice tutorial.
Thanks!! :D
Awesome work! Do you think you could make one that elaborates on the function that fetches and sets the API data?
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.
thank you
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?
thanks bro
Any time
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;
}
Thanks
.then() call automatically awaits for the prev async function to finis
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 ?
Which event i have to used instead of keypress to show weather automatically after user enter city
where did you get weather.main? is that on the API response?
Thank you
🙌
Is it possible to make the search field autocomplete and that it gave some suggestions in a dropdown list?
How do we make live search results below the search bar as we type?
Sorry,
May I ask what font color you are using ( One Dark Pro ) ?? Thanks
Təşəkkürlər
Is it safe to put your api key in a data object/method in a Vue application?
which vs code theme were you using ? Very good video