Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.64 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.64 KB

weather Wise

About the Project

Weather Wise is a Backend Project that that provides weather information for a specific area. It offers current weather conditions and a five-day forecast, as well as determines the route to a desired destination and the corresponding weather conditions upon arrival. The application integrates with Weather and MapQuest APIs to retrieve data location and weather data. It then creates endpoints in a new API to serialize and send the data to the front-end application.

Learning Goals

  • Expose an API that aggregates data from multiple external APIs
  • Expose an API that requires an authentication token
  • Expose an API for CRUD functionality
  • Determine completion criteria based on the needs of other developers
  • Test both API consumption and exposure, making use of the VCR mocking tool

Versions

  • Ruby 3.1.1
  • Rails 7.0.4

API's Used

MapQuest Api Weather Api

Setup

  1. Fork and Clone the repository
$ git clone [email protected]:JTaylor28/weather_wise.git
  1. Navigate to the directory
$ cd weather_wise
  1. Install Gem Packages
$ `bundle install`
  1. Update Gem Packages
$ `bundle update`
  1. Run the Migrations
$ rails db:{drop,create,migrate,seed}
  1. Setup Figaro Gem
$ bundle exec figaro install

Test Suite Instructions

  1. Navigate to each API link and apply for an api key

  2. Navigate to config/application.yml and add your api keys in the following format:

  • MAPQUEST_API_KEY: <YOUR MAPQUEST API KEY HERE>
  • WEATHER_API_KEY: <YOUR WEATHER API KEY HERE>