Skip to content

joejbh/weather

Repository files navigation

README

Getting Started

  1. Ensure you have all the correct system dependencies
  2. Setup .env.local
    • Obtain an api key from https://www.weatherbit.io/
    • Create a .env.local file in the root directory
    • Enter the key as such: WEATHER_BIT_KEY=<your key>
  3. Run bundle
  4. Run bin/setup
  5. Run bin/dev

Running Tests

  • Ensure you have chrome or chromium installed
  • run tests with bundle exec rspec
  • watch tests with bundle exec guard

Notes

  • The site is mobile friendly.
  • Calls weatherbit for weather information
  • Calls ipapi.co for getting address information by ip address
  • I believe in only exposing endpoints that have a legitimate business need for security reasons. This is why I removed the ability to fetch the data via json and I also removed the show endpoints.

TODOs

  • Pin dependencies to specific versions
  • Write tests for hiding/showing delete button and charts
  • Handle errors from https services better
  • Handle transient failures
  • Make deployment pipeline
  • Make automated browser tests
  • Pagination
  • Show more forecast details
  • Cache fetched forecasts for one day

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published