Creates and updates recently added and most played playlists for an authenticated spotify user
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
public
react
scripts
server
views/pages
.eslintrc
.gitignore
.jsbeautifyrc
.prettierrc
.stylelintrc
.travis.yml
.yarnclean
CODE_OF_CONDUCT.md
LICENSE
README.md
nodemon-backend.json
nodemon-frontend.json
package-lock.json
package.json
webpack.config.js
webpack.dev.config.js
yarn.lock

README.md

Spotify AutoPlaylists by Chris Barry

Build Status

A nodejs/express based web app that contains a website and 2 backend services

Available here

This project uses mongodb

./server

./routes

Handle the API

./server/Playlists

mostPlayed.js

Updates a Spotify playlist based on the most played Last.FM tracks

recentlyAdded.js

Updates a Spotify playlist based on recently added Spotify tracks

Playlist.js

The playlist parent class, contains everything the app needs for making/editing/clearing/updating spotify playlists

Config

The app is configured though environment variables. A sample .env file might look like

SPOTIFY_SCOPES=user-read-private,playlist-read-private,playlist-modify-private,playlist-modify-public,user-library-read
SPOTIFY_ID=YOUR_SPOTIFY_APP_ID
SPOTIFY_SECRET=YOUR_SPOTIFY_SECRET_ID
SPOTIFY_REDIRECT=//localhost:5621/member/setup/
LASTFM_TOKEN=YOUR_LASTFM_TOKEN
LASTFM_SECRET=YOUR_LASTFM_SECRET
LASTFM_USERNAME=YOUR_LASTFM_USERNAME
LASTFM_PASS=YOUR_LASTFM_PASSWORD
SECRET=A_SECRET_KEY
ADMIN=YOUR_SPOTIFY_ID
GITHUB_SECRET=YOUR_GITHUB_SECRET