Web application to display Spotify contents based on URI's.
It uses Hallon, libspotify (through Hallon) and Sinatra
It allows you to browse objects pointed to by Spotify URIs. All pages have a "Go to" box that allows you to paste in a Spotify URI to view details about it.
You’ll need your Spotify Premium Account credentials and a Spotify Application Key. Now, put all your credentials in your environment variables:
export SPOTIFY_USRNM='your_username'
export SPOTIFY_PWD='your_password'
Your application key needs special consideration, since it may contain special characters. It needs to
be encoded into base64 before putting it in the environment variable. Luckily, there is a ruby script
in bin/serialize_appkey.rb
that will do this for you.
export SPOTIFY_APPKEY="$(ruby bin/serialize_appkey.rb /path/to/appkey.rb)"
After this, you’ll want to download the dependencies:
- Ruby 1.9.2+
- Bundler
Finally, install all gems required for your platform by using bundler.
bundle install
Now, you should have all dependencies.
bundle exec rackup
Done. Open it in your browser on http://localhost:9292
.