Sweater Weather is a backend application that exposes a series of endpoints for a front end team. The endpoints will contain information that will allow a user to see the curent weather, as well as the forecasted weather at the destination, and travel time to reach the destination.
- Ruby 2.7.2
- Rails 5.2.6.3
- Clone this repo. On your local machine, open the terminal and enter the following command:
$ git clone [email protected]:croixk/sweater_weather.git
-
You can now enter the project directory
$ cd sweater_weather
-
Now, install the required gems using
$ bundle install
-
Run database migrations with
$ rails rake db:{drop,create,migrate,seed}
-
Before consuming the APIs, you will need to start the local server
$ rails s
This project utilizes the following public APIs - these APIs require are free, but do require registration for a key
https://openweathermap.org/api/one-call-api
https://developer.mapquest.com/documentation/geocoding-api/
This project exposes the following endpoints for a front end team
GET /api/v1/forecast?location=denver,co
Content-Type: application/json
Accept: application/json
GET /api/v1/backgrounds?location=denver,co
Content-Type: application/json
Accept: application/json
POST /api/v1/users
Content-Type: application/json
Accept: application/json
POST /api/v1/sessions
Content-Type: application/json
Accept: application/json
POST /api/v1/road_trip
Content-Type: application/json
Accept: application/json