Weather APP is an application that displays the current weather and extended forecast for a given US address or zip code. The data is obtained from Weather API.
- Retrieve the current forecast data for the given US address or zip code.
- Include an extended forecast for the next 2 days.
- Cache the forecast data for 30 minutes for next requests with the same zip code.
- Alert the user when the data displayed was pulled from cache.
- Ruby (3.2.2)
- Rails (7.0.8)
- jQuery (1.12.4)
- Bootstrap (5.3.2)
- Rspec
- Haml
-
Go to the directory and run bundle install.
cd forecast_app
bundle install
-
Run the following command to enable caching in development.
rails dev:cache
-
Start the server.
rails s
-
Go to http://localhost:3000.
-
You can run all specs with the following command.
rspec