nss-day-cohort-52 / giffygram-commando-squad

giffygram-commando-squad created by GitHub Classroom
0 stars 0 forks source link

added fetch and get functions in the provider.js module #18

Closed luciidlou closed 3 years ago

luciidlou commented 3 years ago

Changes Made

  1. 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.
  2. Modified the main.js module to import the fetchData function from provider.js and call it in our render function. ​

    Steps to Review

  3. Checkout this branch locally.
    git fetch --all
    git checkout al-initialBranch
  4. Open a new Terminal tab (⌘T) and navigate to the server directory.
  5. 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

  6. View code file.

    Confirm file modifications are present as indicated above. Confirm no unused code or extraneous comments exist.

gcruz63 commented 3 years ago

went over it together on a zoom call it all looks good