T-Sajad / football-scores-app

1 stars 0 forks source link

Live data 3: Actually get live data #9

Open josephjclark opened 8 months ago

josephjclark commented 8 months ago

This is the final step to getting your app to load live data.

Right now your app still has hard-coded data.

We need to make sure that if data is NOT in local storage, your data loader function can call up to the API server, fetch the data, and return it.

When new data comes down from the server, it should be written to local storage and then returned to the app.

This basically means copying your existing nodejs functions and pasting them into the browser module. Remember that the browser and node are a bit different, so you are likely to have to make some changes to the code.