Will the world end today (or a chosen day) and provide GIFs that show how concerned you should be
Build a simple web app. Query at least two APIs and use the results to update the DOM.
For returning info about asteroids headed to earth: NASA API
For collecting images related to danger level of asteroids: GIPHY API
Test doubles for the API calls
First clone the repo:
$ git clone https://github.com/fac-13/LITE.git
# OR
$ git clone git@github.com:fac-13/LITE.git
Then install the dependencies
$ npm install
To run tests
$ npm test
The api keys for this project should be in a ./config.js
file with a config
object holding the two keys:
var config = {
nasaAPI: '&api_key=' + 'your_api_key',
giphyAPI: '&api_key=' + 'your_api_key'
}
Implement TDD/test code coverage, keep functions pure, have organized architecture for our application, levels of panic (0 - happy, 1 - stressed, 2 - panic, 3 - apocalypse)
As a user, I can:
-
Easily understand the format necessary to enter my date of choice
-
Get back information regarding the likelihood that an asteroid will hit earth on that date
-
See a GIF that represents how I should feel about the asteroid report
As a screen reader user, I can:
-
Tab through everything on the page
-
I can get an idea of what emotion is portrayed in the displayed gif
As a user, I can:
- Use a drop-down to enter my date