About
Tools Used
Getting Started
License
This application sorts user's Spotify playlist based on any of the following attributes:
- Name of the Song
- Name of the Artist
- Duration of the Song
- Popularity
- Flask (python)
- JavaScript
- HTML
- CSS
- Spotipy/Spotify API
- Heroku
-
Clone the repository.
git clone https:/SinghxRaj/PlaylistSorter.git
-
Install virtualenv so that you can create your virtual environment (If not installed yet).
pip install virtualenv
-
Create your virtual environment. Make sure your inside your PlaylistSorter.
virtualenv venv
-
Activate your virtual environment.
venv/Scripts/activate
-
Install dependencies which are stored in requirements.txt:
pip install -r requirements.txt
- Go to Spotify Dashboard
- Login in and click
Create An App
- Give it any name and description and then click create.
- Click on
Edit Settings
- Go under
Redirect URIs
and addhttp://127.0.0.1:5000/callback
- Optionally, under
Redirect URIs
you can add the following:http://127.0.0.1:5000/callback/
http://localhost:5000/callback/
http://localhost:5000/callback
- Save settings and copy the
Client ID
andClient Secret
which are needed to set the environment variables.
- Set the following environment variables in the terminal.
set SPOTIFY_CLIENT_ID=<client_id>
set SPOTIFY_CLIENT_SECRET=<client_secret>
set SECRET_KEY=<any_string>
- To run the application.
flask run
Distributed under the MIT license. See LICENSE
for more information.