This project uses the RSpotify gem in order to access the Spotify API! It is ruby version 3.1.2.
To get started...
Check out the config folder.
Look in the omniauth.rb file and replace where it says <client_id>
and <client_secret>
with your client ID and secret (you get these from creating an app in the Spotify Developer site).
Do the same thing in the application.rb file.
To configure, you may need to run bundle install
to access the rspotify gem.
To create the database, run bundle exec db:migrate
.
There are a few quirks of this app, partly due to the playlist request page also being the page where the playlist rank gets displayed! This causes an OAuth cross-origin reference error (rip). You just need to re-go back to localhost:3000/auth/spotify page to see the playlist ranking-- sorry :) Also, the most recent playlist searched gets loaded upon accessing localhost:3000/auth/spotify, so you will see a playlist ranking upon loading if you have ever used the app before without clearing database despite maybe not having searched in that moment.
(To clear database, run rake db:migrate db:reset
).