A Spotify searching and queueing system
This application is used at 3months, to queue and play music in our office. It runs on an iMac here, and works great (so far)
-
Clone the application:
git clone git://github.com:joshmcarthur/on-the-spot.git
-
Install Redis: OS X:
brew install redis
, Debian/Ubunutu:sudo apt-get install redis-server
-
Pull in dependencies:
bundle install
-
Add configuration variables to a file named
.env
:SPOTIFY_USERNAME="(The Facebook email you want to log in as)" SPOTIFY_PASSWORD="(The Facebook password for the account)"
-
Generate an application key at https://developer.spotify.com/technologies/libspotify/ (Requires Spotify Premium account), and save the key in
config/keys/spotify_appkey.key
-
Start the application by executing:
bundle exec foreman start
. This will run the following processes:rails server
(with Thin, runs application)spotify_controller
daemon (Plays tracks)private_pub
(handles messaging with Faye)