freeCodeCamp / CurriculumExpansion

Creative Commons Attribution Share Alike 4.0 International
313 stars 105 forks source link

chore: added lab for weather app to review fetch API in frontend cert #538

Closed fhsinchy closed 3 weeks ago

fhsinchy commented 1 month ago

Checklist:

Closes #475

fhsinchy commented 1 month ago

The workshop before this doesn't cover geolocation. So I think we need to explain how to use that in the user stories or adjust the project so they don't have to use that - maybe by manually inputting the lat and long.

And we need to provide the URL and the format they need to use. e.g: https://weather-proxy.freecodecamp.rocks/api/current?lat=${location.coords.latitude}&lon=${location.coords.longitude}

I'll update the user stories today with information about geolocation and the API URL including the format.

jdwilkin4 commented 1 month ago

@fhsinchy

Is this ready for another review?

fhsinchy commented 1 month ago

@jdwilkin4 Hey Jessica. I have a few changes to commit today and it'll be ready. I'll notify you as soon as I'm done.

fhsinchy commented 4 weeks ago

@fhsinchy

Is this ready for another review?

This is ready for another review. I have added instruction on what API to use and how to use it.

jdwilkin4 commented 3 weeks ago

I do think there's still some more info we need to give users in order to do the project. I think we can figure it out on the PR to the main repo. We can either provide some boilerplate, or an example, or something.

So we currently have a lecture video about the geolocation API

What is the Geolocation API and how does the getCurrentPosition work? - https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition

That should be enough information for campers to do the lab. I don't know if we need to add more information that the video won't already cover.