Our project is a Spotify Web Application that uses Flask, Spotipy, Bootstrap, Python, HTML, and CSS.
Our projcet will give the user an overview of their favorite artists and some information about them!
Begin by cloning the github repository. Then do the following steps!
To use our project you must do the following. In the project directory, you can run:
This installs all of the packages needed.
First, you need to start the environment and the flask application:
virtualenv env
source env/bin/activate
export FLASK_APP=main
If we decide to commit our API keys to the GitHub repository then this step will not be necessary:
Create a file called .env and fill it with the following variables:
API_KEY = ""
client_id = ""
client_secret = ""
Fill these with your respective API keys.
The API_KEY variable corresponds to your Google Custom Search JSON API Key. This can be found here: link. Click on the "Get a Key" button.
The other two variables are for the spotify API. Getting your access tokens are here: link.
To run the application simply type
into the console and it should bring you to our webpage!
If you would like to add your own code to our program the following commands might be helpful! You can run these in your terminal:
FLASK_APP=development #enables debug mode
kill -9 $(lsof -i :5000 -t) #run after each run of the application to close the ports
Also, whenever you run this applciation it will create a file called .cache which you are going to want to delete each time. If you have this file and try to let a new person use the applciation it will still show your results.