Open Weather
App that consumes the API from Open Weather Map and show 16 days forecast.
Configuration
Get your Open Weather's API Key on this link and export an environment var
called OPENWEATHER_KEY
.
$ export OPENWEATHER_KEY=YOUR_API_KEY
$ bundle install
$ rails s
API
GET /forecasts(.format)
filter: {
city: String # Name of the city
}
GET /forecasts_daily/:id(.format)
{
id: Int, # ID(dt) from forecast_daily
city: String # Name of the city
}
Tests
The app uses RSpec to run the automated tests. Run the following command:
rake spec