Modified file provider.js to include fetch functions and get functions which will retrieve the data from the API and then store it in applicationState. The get functions give us copies of data from applicationState.
Modified the main.js module to import the fetchData function from provider.js and call it in our render function.
Steps to Review
Checkout this branch locally.
git fetch --all
git checkout al-initialBranch
Open a new Terminal tab (⌘T) and navigate to the server directory.
Test app functionality.
To test the fetch functions, serve up the application and look at the network tab in the devtools. you should see 4 fetch calls all with 200 codes. The names should be users, posts, messages, and likes
View code file.
Confirm file modifications are present as indicated above.
Confirm no unused code or extraneous comments exist.
Changes Made
provider.js
to include fetch functions and get functions which will retrieve the data from the API and then store it in applicationState. The get functions give us copies of data from applicationState.Steps to Review