renanigt / open_weather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Weather

CircleCI codebeat badge Code Climate Issue Count Test Coverage

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

About


Languages

Language:Ruby 78.5%Language:HTML 16.6%Language:CSS 2.5%Language:Nginx 1.3%Language:JavaScript 1.1%