Skip to content

Started as practice for AJAX requests using jQuery, refactored to use ES6 async / await etc. Fetches random image from Dog API then returns info from Wikipedia.

Notifications You must be signed in to change notification settings

sebknight/fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See some dogs~!

Get random dog image from the Dog API, then search the breed on Wikipedia.

User stories

  1. As a user, I want to see a dog image
  2. As a user, I want to receive information about the dog
  3. As a user, I want the application to fail gracefully

Technical details

This project uses the Fetch API to asynchronously request data from the Dog and Wikipedia APIs. It uses Grunt to automate ESLinting and compile SCSS. Error handling captures instances where the Dog or Wikipedia API calls fail or where there are no results, as well as reducing garbage output by providing sensible defaults. Currently doesn't support IE11, but I'll probably implement a Fetch polyfill in the future.

About

Started as practice for AJAX requests using jQuery, refactored to use ES6 async / await etc. Fetches random image from Dog API then returns info from Wikipedia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published