Skip to content

srfinkel/simple_forecast

Repository files navigation

README

A simple weather forecasting application.

Ruby 3.0.0
Rails 7.0.4

Requirements

  • take an address as an input (may need a separate geo-coding API to get latlong coordinates)
  • at minimum, retrieve the current forecast
  • bonus to get the high/low and/or extended forecast
  • display the forecast to the user
  • cache forecast details for 30mins for all subsquent requests by zip codes
  • display an indicator if result is pulled from cache
  • include unit tests
  • detailed comments and documentation
  • include Decomposition of objects in the documentation (activity diagram or sequence diagram)
  • include design patterns (where/if applicable)
  • scalability considerations
  • naming conventions
  • encapsulation
  • dry/ abstact code

APIs

Geoapify - retrieves the latitude and logitude of an street address.

Tomorrow.io - accepts latitude and longitude for location and a timestep for each API . returns a plethora of weather information including weather icons.

TO DOs for futher development

  • see if # frozen_string_literal: true is still needed for ruby-3.1
  • upgrade to ruby 3.1
  • clean up Gemfile
  • get Tomorrow.io icons rendering on the index page
  • fix turbo_stream bug
  • add other weather data from Tomorrow.io

About

A simple weather forecasting application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published