Coder Social home page Coder Social logo

cheshire137 / perpetuaspotify Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 1.78 MB

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

License: MIT License

Ruby 53.97% CSS 10.96% JavaScript 12.39% HTML 22.68%
spotify-api bulma-css sinatra-applications playlist-generator music

perpetuaspotify's Introduction

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

perpetuaspotify's People

Contributors

cheshire137 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.