Generate ambient, atmospheric, or peaceful Spotify playlists that you can work to.
The inspiration for this app comes from my desire to have new music that doesn't distract me when I'm coding. It's jarring when I'm focused on a problem and the music playing has an annoying segment, distracting lyrics, or otherwise something that makes me hunt down my music player to change the track. I'm also lazy about wanting to find new music when I'm programming, so I wanted to get new music in the quickest way: by hitting a button in an app!
The name of this app comes from my manually curated Workin' Don't Bother Me playlist on Spotify.
Create a Spotify app.
Set http://localhost:3000/users/auth/spotify/callback
as a redirect URI.
bundle install
npm install
rake db:setup
rails db:migrate
cp dotenv.sample .env
Modify .env with your Spotify app's credentials.
bundle exec rails s
open http://localhost:3000
Create an app on Heroku.
Create a Spotify app
if you haven't already. Set https://your-heroku-app.herokuapp.com/users/auth/spotify/callback
as
a redirect URI.
heroku git:remote -a your-heroku-app
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
heroku config:set SPOTIFY_CLIENT_ID=your_client_id_here
heroku config:set SPOTIFY_CLIENT_SECRET=your_client_secret_here
git push heroku master
heroku run rake db:migrate
heroku open