/go-for-a...

Weather Forecast for outdoor activities in the CLI

Primary LanguageJavaScript

☀️ ⛅ ☁️ ❄️ ⚡

Weather Forecast for outdoor activities in the CLI

Roadmap 🚲 🚲 🚲

  • Install:

    • create an alias go-for-a so it's accesible via CLI
  • Run:

    • check if the user has an Open Weather API key
    • if the user has defaults set
      • query OW with defaults
      • & handle-response
    • check if the user has not a default location set
      • ! → ask them if they want to be geolocated
      • ! → ask them to enter it manually
      • ! → tip them they can set the location via flag
    • check if the user has a default activity set
      • ! → prompt user to choose between swim / hike / run
      • ! → tip them they can set the activity via flag
    • query Open Weather API
      • pass key as arg
      • pass location as arg
      • & handle-response
    • handle response
  • User should be able to pass flags:

    • custom location
    • geolocate
    • activity
    • API key
  • User should be able to set defaults via flags:

    • location
    • activity
    • API key
      • store defaults via ENV vars