Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Make a playlist inspired by your recent tracks. Listen to it. Repeat.

License

Notifications You must be signed in to change notification settings

cheshire137/perpetuaspotify

Repository files navigation

Perpetuaspotify

View the songs you've listened to most recently on Spotify. From those songs, a list of recommended songs is generated. You can fiddle with how those recommendations are generated to tweak the results. Then, create a playlist of those recommended songs. Listen to that playlist and do the whole process over again.

Screenshot of app

How to Develop

Create a Spotify application. Set http://localhost:9292/callback/spotify as a redirect URI.

bundle install
cp dotenv.sample .env

Modify .env to set environment variables, such as your Spotify client ID and secret. Run rake generate:secret to generate SESSION_SECRET.

rake db:create
rake db:migrate
rackup
open http://localhost:9292

How to Test

RAILS_ENV=test rake db:create db:migrate
bundle exec rspec

How to Deploy to Heroku

Create an app on Heroku. Set https://your-heroku-app.herokuapp.com/callback/spotify as a redirect URI in your Spotify app.

heroku git:remote -a your-heroku-app
git push heroku master
heroku config:set SPOTIFY_CLIENT_ID=value_here
heroku config:set SPOTIFY_CLIENT_SECRET=value_here
heroku config:set SESSION_SECRET=value_here
heroku run rake db:migrate
heroku restart

About

Make a playlist inspired by your recent tracks. Listen to it. Repeat.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published