Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

kenziebottoms/nss-front-03-strfkr

Repository files navigation

Shake your fist at the sky

Run locally

git clone git@github.com:kenziebottoms/nss-front-03-strfkr.git
cd nss-front-03-strfkr
npm install
grunt
hs -o

Requirements

Practice jQuery and Promises and optionally Handlebars

  • Accept two dates from the user (year, month, day) as a search parameter.
  • Use the NASA API to make an Ajax call that will gather data about what objects will be close to our planet in the timeframe specified by the user's dates.
  • Using the data you get back from NASA (promises!), use FOAAS to tell three of those asteroids to fuck off, by name.
    • You can use whichever of the foaas message types you like.
  • Print these sky-fist-shaking statements to the DOM.

Bonus:

  • Only tell those asteroids that are "potentially hazardous" to fuck off.
  • Use different messages from foaas for the different asteroids.
  • Use Handlebars to print your three messages to the DOM.

Should do:

  • Person-friendly error if dates aren't entered.
  • Person-friendly error if dates are more than 7 days apart.
  • Set dates to today.
  • Set second date to first date upon first date change.