This project is the final project for module 3 for the Turing School of Software & Design. The objective for this project is to consume 3rd party APIs and expose new APIs based on an incoming set of requirements set up by a front-end engineer.
Sweater Weather's purpose is to be able to take in a location and return a current forecast, five day forecast and the forecast for the next 8 hours. It also allows for someone to create a background for a user based on a given location. Additionally it allows for a user to be able to check a travel route. This check will return the duration of the trip based on a car traveling at posted speeds as well as give the weather information when they should arrive there.
- Retrieve a background image: GET api/v1/backgrounds?location={query}
- Retrieve the weather: GET api/v1/forecast?location={query}
- Create a user: POST api/v1/users
- Login a user: POST api/v1/sessions
- Check a road trip: POST api/v1/road_trip
- API Consumption and Exposure via Facade/Service Design Pattern
- Ruby on Rails
- Sad Path/Edge Case Management
- Faraday - Pry
- Bcrypt - Figaro
- RSpec - jsonapi-serializer
- ShouldaMatchers - SimpleCov
- Fork and Clone the repo
- Install gem packages:
bundle install
- Setup the database:
rails db:{create, migrate}
- Rails s
-
Ruby 2.7.2
-
Rails 5.2.6