@DavidMorgade
Posted
Hello anderson, congrats on finishing the challenge!
Just a little suggestion, you don't need to upload your data to any service if you want to practice your fetch()
function, you can fetch local json files just using the relative path of the file in your project folder, it will get the same results as uploading it on a server, and it will need the same syntax to get the data with fetch
, the only thing that will change is the url path of the file.
Marked as helpful
@andykallian
Posted
@DavidMorgade thanks! I thought that if when uploading the project to a server like github page, the local json request wouldn't work. Thank you for clearing up this doubt i had
@elaineleung
Posted
@andykallian I used the fetch method with local data in my solution, so if you're interested in how I did it, you can check out my repo!
@andykallian
Posted
@elaineleung yeah, I've checked it on the codes of everyone who has commented here, also in other solutions, and they all really used a local JSON with no issues. I thought it was not possible when dealing with remote servers