Sinatra micro-service to handle API calls and data synthesis for the user facing Ruby on Rails application, WeatherBop. Part of an 11- day sprint from project inception to completion. All goals for the functionality of this application were met by the deadline! It's deployed here on Herokuapp -- go give it a try!
From a user inputted location, this application retrieves specific weather data and associates the present weather attributes to track audio attributes in order to return a curated list of tracks. This application also handles playlist creation functionality in which the recommended tracks are aggregated into a cleverly named playlist in the users Spotify library.
- weather data retrieved from the Open Weather API
- curated track list and playlist creation handled utilizing the Spotify API
- clone and setup locally
bundle install
Run touch .env
to trigger the creation of a /.env
file for configuring API keys.
Sign up for the following API:
OpenWeather
Add the following code snippet to your /.env
file.
Make sure to insert the key without the alligator clips ( < > ).
WEATHER_API_KEY=<insert>
The weather_music2
application is fully tested using RSpec reporting ~100% test coverage determined by SimpleCov. To run the test suite, setup the application and run bundle exec rspec
in the terminal. To run a specific test run bundle exec rspec <test file path>
. To open the coverage report generated by SimpleCov run open coverage/index.html
.
- Sinatra
- Corneal
- dotenv
- Faraday
- FastJsonAPI
- Bcrypt
- VCR
- WebMock
- RSpec
- Pry
- Launchy
- Capybara
- SimpleCov
- Spotify API
- OpenWeather API
- GitHub & GitHub Projects