$ git clone [email protected]:nathangthomas/sweater_weather_2.git
$ bundle
$ bundle exec figaro install
(Add the following API keys to ./config/application.yml:)
GOOGLE_API_KEY: <your google api key here>
DARK_SKY_API_KEY: <your dark sky api key here>
FLICKR_API_KEY: <your flickr api key here>
GIPHY_API_KEY: ,your giphy api key here
$ bundle exec rspec install
$ rails db:{create,migrate}
- You can run test suite with
$ bundle exec rspec
- Start a local server with
$ rails s
and access Sweater Weather in your browser at localhost:3000 - You can also interact with Sweater Weather here => https://ancient-fortress-22550.herokuapp.com/ ``
POST '/api/v1/users'
PSST '/api/v1/sessions'
GET '/api/v1/location?location=<city,state>'
(returns coordinates for a given location)GET '/api/v1/forecast?location=<city,state>'
(returns forecast data for a given location)GET '/api/v1/backgrounds?location=<city,state>'
(returns a background image for a given city)GET '/api/v1/antipode?location=<search_param>'
(returns a location's antipode and it's weather) -- don't forget to merge this from your assessment branchGET '/api/v1/gifs?location=<city,state>'
(returns a gif related to the forecast for each hour of the day)POST '/api/v1/road_trip'
(pass origin, destination, and api_key in body - returns estimated travel time and the weather for your time of arrival)