bcasci / apple_weather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skills Assessment

This my skills assesment for Apple, Inc.

The goal is demonstrate that I can build a Rails application, and follow some requirements. My intention was not to produce a production worthy application.

There are comments throughout the code to indicate possible strategies that I might discuss with a team when building a bigger corporate/enterprise Rails appication.

Also, I wasn't sure if I was expected to alter the requirements which were said in a separate e-email to be open to interpretation. Asking a user for an address in order to get a weather forecast, so it can then be cached by a zipcode felt like unessary steps when the forecast could be had by asking for a less specific location like city or zipcode.

-Brandon

brandoncasci$ rails test:all

# Running:

.......Rack::Handler is deprecated and replaced by Rackup::Handler
Capybara starting Puma...
* Version 6.4.2 , codename: The Eagle of Durango
* Min threads: 0, max threads: 4
* Listening on http://127.0.0.1:52619
................

Finished in 3.336514s, 6.8934 runs/s, 21.2797 assertions/s.
23 runs, 71 assertions, 0 failures, 0 errors, 0 skips
MacBook-Pro:apple_weather_alt brandoncasci$ 

Requirements

  • Must be done in Ruby on Rails
  • Accept an address as input
  • Retrieve forecast data for the given address. This should include, at minimum, the current temperature (Bonus points - Retrieve high/low and/or extended forecast)
  • Display the requested forecast details to the user
  • Cache the forecast details for 30 minutes for all subsequent requests by zip codes. Display indicator if result is pulled from cache.

Assumptions

  • This project is open to interpretation
  • Functionality is a priority over form
  • If you get stuck, complete as much as you can

Submission

  • Use a public source code repository (GitHub, etc) to store your code
  • Send us the link to your completed code

About


Languages

Language:Ruby 84.1%Language:HTML 10.4%Language:Dockerfile 2.5%Language:JavaScript 1.7%Language:CSS 1.0%Language:Shell 0.3%