Backend repo utilizing a service-oriented architecture for a fictitious front end application to plan road trips. The app will allow users to see the current weather as well as the forecasted weather at the destination.
Exposes an API to satisfy requirements from a front end application.
This project is based off Turing's Sweater Weather project. More details can be found here
- Fork and Clone the repo
- Install gem packages:
bundle install
- Setup the database:
rails db:{drop,create,migrate}
- Run
bundle exec rspec
to test
- Sign up for API keys from the following:
- MapQuest Geocoding API here
- MapQuest Directions API here
- OpenWeather One Call API here
- Unsplash here
- Set-up Figaro:
bundle exec figaro install
- Navigate to /config/application.yml
- Paste the following code and replace 'YOUR-API-KEY' with your respective credentials:
MAPQUEST_KEY: 'YOUR-API-KEY'
OPEN_WEATHER_KEY: 'YOUR-API-KEY'
UNSPLASH_KEY: 'YOUR-API-KEY'
- Ruby 2.7.2
- Rails 5.2.5