Prerequisites:
- Make sure you have Python 3.7, Flask installed (make sure you are using pip version 3 >)
pip install Flask
pip install spotipy --upgrade
- Get a client and secret key from Spotify and export them:
export SPOTIPY_CLIENT_ID='YOUR CLIENT'
export SPOTIPY_CLIENT_SECRET='YOUR SECRET'
export SPOTIPY_REDIRECT_URI='http://127.0.0.1:5000/oauth/callback'
- Add the redirect URI (http://127.0.0.1:5000/oauth/callback) to your Spotify app in the developer console.
How to run this app locally:
- Navigate to your terminal
git clone https://github.com/sbssai123/spotify-flask-tutorial.git
cd spotify-flask-tutorial
export FLASK_APP=spotify-app
export FLASK_ENV=development
flask run