This is my first React project and you made it so simple, interesting and attractive.
@egebarsbozdeniz6257 Жыл бұрын
I came here because I was struggling with the undefined reading of temp part. Great solution, very straightforward. Well done!
@codecommerce Жыл бұрын
Thank you!
@doobinl85052 жыл бұрын
Thanks for such a great video, one of the few videos where I was able to follow along the whole way without much hassle and refactoring the tutorial in a modern way just so it works.
@codecommerce2 жыл бұрын
That’s awesome man thank you! Code does become rather dated pretty quickly!
@archanarai242311 ай бұрын
Hey clint awesome work, followed along and completed it. Made some changes as onkeypress and event is deprecated , and played with css styling too. Had an idea about axios but didn't implement it, it was fun playing around with code. Thanks a lot:)
@jessiefianu688110 ай бұрын
Hello there, please can you tell me how you went about the onKeyPress. It's deprecated in mine too so I'm stuck with the code. Secondly my background image only covers 3/4 of the browser, is there anyway I can fix this? Thank you very much and I am looking forward to hearing from you.
@archanarai242310 ай бұрын
@@jessiefianu6881 hi, since onkeypress was deprecated I used onKeyDown and it worked fine for me. And for covering your whole background image maybe use object-fit property
@simranbanwait2 жыл бұрын
sir you have no clue how much i struggled to find a way to run a function on a key press, , this video helped alot , thankyou so much
@codecommerce2 жыл бұрын
Thanks man- I know that’s frustrating! Haha
@obinnailoanya87302 жыл бұрын
I started Learning React Last month and it felt different from Vanilla Javascript but you made it simple, after seeing this video, i play around with Rapid API, i am forever subscribed to this channel and if you decide to leave youtube, i will follow you to anywhere so i can learn whatever you know, lol. YOU MAKE IT VERY VERY VERY VERY SIMPLE. Thank you so much Sir
@codecommerce2 жыл бұрын
Thank you so much man! React makes things so incredibly easy!
@nanatieku5805 Жыл бұрын
How's the journey being so far Obinna? I started learning React a few weeks now. It's going quite well so far
@obinnailoanya8730 Жыл бұрын
@@nanatieku5805 I’m a pro now, I use it as the front end to the full stack applications I build, I use typescript too
@melssf78522 жыл бұрын
this tutorial exceeded my expectations and made things so much easier for me thank you so much! :) i will be following and using your tutorials going forward!
@codecommerce2 жыл бұрын
Thank you Mels! That’s awesome!
@carlosarmandolariosrojas7870 Жыл бұрын
its simple but very useful, thanks man!
@codecommerce Жыл бұрын
Thanks man!
@the-boss-98 Жыл бұрын
I was actually building a similar app by myself and this error 28:07 had me stuck the whole day. Thankfully found this video.
@majebell2 жыл бұрын
Great tutorial. I've just found your channel, and helped already me a lot! Subscribed! Hope you upload more tutorials/short projects like this!
@codecommerce2 жыл бұрын
Thanks for the sub! So awesome!
@chandrakethans5835 Жыл бұрын
Built my first react application thank you so much :)
@codecommerce Жыл бұрын
Awesome dude!
@varunupadhyay2488 Жыл бұрын
does this api still working? should i follow this video?
@chandrakethans5835 Жыл бұрын
@@varunupadhyay2488 yeah the api working it’ll take sometime to become active after that it’ll work just fine
@dharapandya204510 ай бұрын
Is it still working or not? Pls reply @@varunupadhyay2488
@Mahmoud.MFA.Fouad.2 ай бұрын
Thanks a lot , the way you explain makes everything easy to understand , I really appreciate it 😊❤❤
@ElegantCoder2 жыл бұрын
Great video again just completed it here is the code snippet to check if no city is found axios.get(url).then((response) => { setData(response.data); }).catch((error) => { alert(error.response.data.message) })
@grzegorzmolin2 жыл бұрын
Yeaaayy! Such a joy making the first reactive api webpage!! 🥳 Thank you very much!
@codecommerce2 жыл бұрын
Awesome dude!
@pouyabh2 жыл бұрын
i'm learning react and i have to say it was a great video for beginners thanks for sharing it
@codecommerce2 жыл бұрын
Glad it was helpful!
@Lamamaaaa4 ай бұрын
Thankyou so much for this amazing tutorial
@vasiliskalfopoulos7848 Жыл бұрын
very good job you can also add .catch in search location , in case someone type a location that not exist , like dradubau const searchLocation = (event) => { if (event.key === 'Enter') { axios.get(url).then((response) => { setData(response.data) }).catch((error) => { console.error('Error fetching weather data:', error); setLocation(''); }); } }
@codecommerce Жыл бұрын
Thank you sir!
@buenvia2 жыл бұрын
Mate, this was brilliant. Thanks for the tutorial.
@codecommerce2 жыл бұрын
Thanks Matt!
@AparnaDhara-zs2kl11 ай бұрын
Really educational for beginners!!
@palomamorais23842 жыл бұрын
perfeeect , i was struggling to implement open weather, but you made it so simple, thanks a lot!!!!!
@codecommerce2 жыл бұрын
Thank you Paloma!
@shanu36822 жыл бұрын
Hey.. I completed react js some times ago and looking for some beginners project. Can u help me with that..
@usmansahi Жыл бұрын
thank you so much.this is really cool and easy to understand. wish you best of luck for more this type of quick learning videos
@IamPetrus Жыл бұрын
Thank you for this walkthrough. On 7:48, did you add an emmet extension? figuring out right now how to get that Emmet Abbreviation suggestion to keep saving time. Current emmet extensions I have do not throw me options like yours
@DeyDreamMusic Жыл бұрын
I'm wondering the same thing, way faster workflow
@ganeshsaladi5932 Жыл бұрын
This is just brilliant , perfect tutorial exist , i made my first project for resume hurray
@ParthPrabhune-v2w Жыл бұрын
Thank you so much man!!!!! It was really helpful
@moradgrey1173 Жыл бұрын
a good extension of that would be changing the background depending on the weather condition
@tsekonya21412 жыл бұрын
Have to say thanks for these videos, was struggling with react for so long but watching these vids has helped me so much. Great content.
@codecommerce2 жыл бұрын
Glad to hear it!
@coolguyike2 жыл бұрын
im just learning react but i enjoy your teaching style, thanks brother!
@ramirorenteria73332 жыл бұрын
Thank you for the tutorial! Really learned a lot!
@vinaygoswami53742 жыл бұрын
This is one of the best tutorial for using basic API
@codecommerce2 жыл бұрын
Thanks Vinay!
@engbesher74792 жыл бұрын
keep it up best tutorial ever it works with me thanksssssssss
@codecommerce2 жыл бұрын
You’re the man! 💪
@viniciusm.m.78222 жыл бұрын
Thanks, dude! Keep it up!
@thewpwing2 жыл бұрын
Hi thanks for such a tutorial. First time using axios and find it very easy. Hope you will show such a small but important tutorial.
@knightridergaming1106 Жыл бұрын
A new subscriber from Pakistan , Thanks really simple and straight forward 🥰
@codecommerce Жыл бұрын
Thank you man!
@GoodGuyHeffy Жыл бұрын
at 26:46 I keep just getting axios 404 errors. On the open weather site I had to scroll way down to find the API call example in this video. Says its no longer being supported, and the newer version uses Latitude and Longitude. Anyone know how to fix? API stuff is where im the weakest rn and I have a React interview in 2 days :/
@julianmartinez31542 жыл бұрын
Appreciate the video. Has made so many things very clear for me. Well done sir, looking forward to future videos.
@codecommerce2 жыл бұрын
You’re awesome Julian, thank you!
@Atesz05092 жыл бұрын
Really great and simple guide,subscribed!
@codecommerce2 жыл бұрын
Awesome, thank you!
@malinosterberg98772 жыл бұрын
Thanks for a great tutorial!
@codecommerce2 жыл бұрын
Thank you Malin!
@Andyruuuu2 жыл бұрын
Fantastic, thank you!
@Charbasaur2 жыл бұрын
Great tutorial, I learned a lot. I subscribed and I'm excited for more. Thanks! :)
@codecommerce2 жыл бұрын
Thank you dude!
@tarekmustafa25252 жыл бұрын
Great tutorial, thank you.
@codecommerce2 жыл бұрын
Thank you Tarek!
@duytien692 жыл бұрын
Thanks for such a great video! i love this
@codecommerce2 жыл бұрын
Thank you very much
@romanlupan75762 жыл бұрын
Great tutorial and also a good explanation of each step
@codecommerce2 жыл бұрын
Glad you liked it!
@sheikhrasel854 Жыл бұрын
Amazing ❤
@bhargav8263 Жыл бұрын
great tutorial, thank you
@varunupadhyay2488 Жыл бұрын
does this api still working? should i follow this video?
@bhargav8263 Жыл бұрын
@@varunupadhyay2488 yes working,api works after half an hour
@sablecipher7 ай бұрын
Thanks so much! This was great. Quick question, when it comes to pushing to GitHub, how do we hide the API key?
@maazmuhammad1013 Жыл бұрын
Increase the font size of Vs code so its easier to follow along. Thank you.
@codecommerce Жыл бұрын
Will do!
@lucaspereira5388 Жыл бұрын
hello men great video but the current API don't have the location parameter, only the latitude, and longitude
@RohanSharma-dr1vy6 ай бұрын
thanks for the video
@tiagocosta26892 жыл бұрын
Great video!
@codecommerce2 жыл бұрын
Thank you Tiago!
@joaquin_carp2 жыл бұрын
thanks for your video, i really help me! greetings from Argentina.
@codecommerce2 жыл бұрын
Glad it helped! Thank you so much dude!
@andrei-petrulazar55642 жыл бұрын
Great content! I learned many useful things. thanks a lot !!
@codecommerce2 жыл бұрын
Glad it was helpful!
@dannykennah20072 жыл бұрын
what happens if the user enters something that isn't a city? its not really finished.
@mohamedboukhanouf2 жыл бұрын
thank you so much for this video it was amazing project
@codecommerce2 жыл бұрын
Thank you Mohamed - cheers dude!
@adtddeathcore2 жыл бұрын
esta tan bien explicado que aun sin dominar el ingles se entiende perfecto, excelente tutorial
@codecommerce2 жыл бұрын
Gracias 🙏
@orielamar16202 жыл бұрын
I didnt understand what you did with the json file of the API result on 6:42. can i get an explaination of what was that and how to do it ? please :)
@medulla12913 сағат бұрын
thanksss!
@ayxan39502 жыл бұрын
Thank you This video is helpful
@codecommerce2 жыл бұрын
Thank you sir!
@kingsleyezikeoha50232 жыл бұрын
an amazing video , thanks for this ,will be locked into your channel
@anask5502 жыл бұрын
can you please help me at 11:11 , the star wont work, what else can i use instead of it?
@codecommerce2 жыл бұрын
Thank you!
@abhay_Awasthicarguy77773 ай бұрын
I make this after seeing your video by myself.
@Abduraxmonm4169 ай бұрын
good job my frends bravo
@kevinm58982 жыл бұрын
Love the tutorial! First city entered is my city! Haha
@codecommerce2 жыл бұрын
Haha bonus!
@nedagholami3742 жыл бұрын
Excellent🤩
@codecommerce2 жыл бұрын
Thank you!
@javohirshirinboyev35332 жыл бұрын
Thank you 👍👍
@okage_2 жыл бұрын
hi, i made a seperate component for the search and for the actual information, how would i get the weather info from the search component to the information component so it can be displayed?
@hcw15662 жыл бұрын
This tutorial really helps me to practice React with API~ At the end of the course, I found that while refreshing the website , the unit of temperature would still exist .I’d say that because it was written in ".top" not in ".bottom" . Was it right? Then i am trying to change the backgroung URl via using Pexel API . Hope it works.~~~
@codecommerce2 жыл бұрын
How are you making the API call?
@hcw15662 жыл бұрын
@@codecommerce Pexel API can be used by searching pictures whatever keywords you want , with the location in weather website , it can search the weather and the pic at the same time ,and if i can't seacrh the city that i would use the default pic to display . But i did come up with a problem that i still can't figure it out , screen would flickered with the default pic while refreshing or searching new location . Sorry about that my English isn't really good.
@lewisnt_2 жыл бұрын
good work bro keep it up
@codecommerce2 жыл бұрын
Thank you, I will
@lucasamaral5429 Жыл бұрын
Great video
@juancamilomarin79852 жыл бұрын
Soy de colombia muchas gracias por tus videos por tu enseñanza mil gracias
@beeekle2 жыл бұрын
@20:54 when I input the ${location} it throws the warning "Unexpected template string expression. eslint(no-template-curly-in-string)" and when i test it in the dev tools it gives a 404 error
@codecommerce2 жыл бұрын
does it reference the line of code?
@vladislavmitkov15802 жыл бұрын
I have the same problem, and can't find a solution.
@biratdatta2 жыл бұрын
I am having the similar issue with 404 not found . I guess it is not unable to fetch data from the API and also the onkeypress={SeachLocation} doesn't work for me
@camo49702 жыл бұрын
make sure you put this line of code in between backticks ` ` and no quotation marks ' ' . this as a template literal otherwise it wont work
@wh0knowsprez2 жыл бұрын
@@codecommerce I have the same problem, It does not distinguish the ${location} between the api link (it counts it as one whole link). Any tips to resolve this?
@jiyoungkim92582 жыл бұрын
So nice 👏
@codecommerce2 жыл бұрын
Thank you sir!
@nikebelias75272 жыл бұрын
Use an extension to right import react from 'react'';.... This extension named: ES7+ React/Redux/React-Native snippets Then right rafce in each react functional component, for class based component rcc
@Ronifromearth2 жыл бұрын
man i create apps fine but learning CSS with you really helped me a lot thanks from INDIA brother loved this project a lot
@codecommerce2 жыл бұрын
Thanks dude! Much love! 💪
@camo49702 жыл бұрын
on minute 20:20 , why did you initialize the first state with {} as an object and the second one with "" as a string? how do i know when to use those?
@archanarai242311 ай бұрын
I think it's because the data is gonna refer to whole json data object where as location is used only to store city name so it's initialized as empty string
@Denn-t5t Жыл бұрын
Which VS code theme do you use? It seems like Dracula, but not exactly. Thanks for vid
@harshanabatagalla Жыл бұрын
Thanks !
@hawks22712 жыл бұрын
Good job👏🇧🇷
@jinda002 Жыл бұрын
Im not sure what im doing wrong but the ${location} in the URL string doesnt update from the input.. my axios is getting error
@stanleylafond46502 жыл бұрын
Thanks for the tutorial. One suggestion: It would be helpful when you are setting up files to explain what you are doing rather than saying "let's do that there", 7:36
@codecommerce2 жыл бұрын
Thanks Stanley - I'll try and be more specific
@JuNe-rm6pk2 жыл бұрын
Very good tutorial! Really helpfull! 👍 Maybe can we wish for a tutorial about a travel map app. something like that? That would be great. Thank you! 🙏
@codecommerce2 жыл бұрын
Great suggestion! That would really be cool - add in google map API!
@vevagaanandanpillai7 ай бұрын
I was scratching my head because of the back ticks in the "url" variable. 😂
@michaellevi67432 жыл бұрын
Awesome work Clint. Is there a way to have it automatically display from your browsers location vs. searching for a location. I haven't watched your whole video yet so not sure if you covered it or not
@codecommerce2 жыл бұрын
Thank you sir! I didn’t even think about that, but I’m sure you can!
@toyosisalami64532 жыл бұрын
Thank you so much for this tutorial! It was really fun and I learned a lot, including a previously unknown (to me) JavaScript method: toFixed()
@codecommerce2 жыл бұрын
That's awesome man - Glad it helped!
@anupprajapati68438 ай бұрын
What if you entered the city that does not exists , you should add condition to display "City Not Found" for that matter. Otherwise its 10/10 app Great!!!
@codecommerce8 ай бұрын
That would be a nice addition
@anask5502 жыл бұрын
what can i use instead of the star at 11:11 ?
@soumyadipsamanta332 жыл бұрын
What happened in 6:43 I didnt get it and how the weather(1).json changes into like that
@codecommerce2 жыл бұрын
So I just copied the response and pasted into a js file. When I saved it, the data was formatted nice and “pretty”. I’m using the “Prettier” ext to format all of my code.
@phild5339 Жыл бұрын
how could you alter this project so that you have a "gallery" of the different weather data for differnet locations?
@aymenbachiri-yh2hd Жыл бұрын
thank you
@nehat7862 жыл бұрын
Great content it would be great if we see some easy more stuff with some bootstrap or material css
@codecommerce2 жыл бұрын
I should familiarize myself a little better with CSS libraries. I'm not a huge fan of bootstrap however I think material and tailwind is a little more appealing!
@aurrelko2 жыл бұрын
Thanks for tutorial buddy, just wanted to say that your warning it was in line 43 need to be ( !==).
@codecommerce2 жыл бұрын
Thank you Aurrel- I appreciate that.
@vitslama Жыл бұрын
Mby use bootstrap next time it would save a lot of time with the styling
@damienchung1409 Жыл бұрын
How can I deploy this project for showcase?
@codecommerce Жыл бұрын
Heroku or GitHub pages are both free & easy! I have a video on both - super easy! 🙌
@emiliafuks25942 жыл бұрын
Hi, thanks for this. Really helpful. I'm just wondering why you're keeping your API Key just hanging there out in the open? Any reason for that?
@codecommerce2 жыл бұрын
Hi Emilia! No- I should’ve put it in a .env file 🤫😏 hehe
@chucknorris79952 жыл бұрын
@@codecommerce Do you have a video on .env files? I've been meaning to figure how to use them. Also, the feature: get current weather data by city has been depracated. Is still works tho. I been trying to get the coordinates from their geolocation api and then pipe that in to another api call.Kinda struggling with it. lol Thanks for the awesome content!
@corbinsbeats25405 ай бұрын
Yeah but when you type in a wrong cuty it passes an eeror 404 in the console exposing your api key. How to fix???
@aiortairaan54582 жыл бұрын
Which extention have you used for creating div with classname directly using the dot operator?
@codecommerce2 жыл бұрын
That is with vs code “emmet”. I believe it comes natively.
@aiortairaan54582 жыл бұрын
@@codecommerce yup got it sorted
@nyashamusanhu5412 жыл бұрын
What if I want to print those responses to any specified file format like csv?
@codecommerce2 жыл бұрын
Hi Nyasha, I would have to look that up. I am not sure off the top of my head.
@fatmamostafaa81182 жыл бұрын
I have a proplem everything is going well except when i take the weather.json data inside the file are not shown can you help me please
@codecommerce2 жыл бұрын
Fatma, do you have a gh?
@kevinleon462111 ай бұрын
Thanks papi
@Nomanzafar-g8qАй бұрын
OnKey press is not working in my visual code can you please tell me
@longsteinpufferbatch4949 Жыл бұрын
Why is my onkeypress slashed out? Any help will be appreciated
@archanarai242311 ай бұрын
It's deprecated now since it won't work in all browser, instead onKeyDown is used
@rohithuneeks71842 жыл бұрын
Should this project contains 2 microservices communicating each other ?