This application provides weather information for a roadtrip. Currently, this is a Rails API with endpoints created per project specifications for Turing School.
Deployed on heroku at https://sweater-weather-ap.herokuapp.com/
- Consuming a number of various APIs
- Producing serialized API responses
- Authenticated API calls
- Test driven development
- Ruby version 2.4.1
- Rails API version 5.2.4.1
git clone
bundle install
bundle exec rake db:{create,migrate}
rails s
-
You can run the full testing suite with the command
bundle exec rspec
-
You can run an individual test using
bundle exec rspec <path-to-file>
Keep environment variables secure by using Figaro to generate an application.yml
file. See more information about using the figaro gem at https://github.com/laserlemon/figaro.
Environment variables and required API keys/tokens (in Figaro format) :
- Google Geocode API Key defined as
ENV['GOOGLE_GEO_API_KEY']
- Darksky Developer Token defined as
ENV['DARKSKY_API_KEY']
- Unsplash API Key defined as
ENV['UNSPLASH_API_KEY']
- Google Directions API Key defined as
ENV['GOOGLE_API_KEY']
From time to time you may receive an error when testing with the VCR. You can delete the cassettes directory from your spec
folder and run bundle exec rspec
to refresh the cassettes used. More information on VCR cassettes can be found in the VCR documentation.