A Website that uses the Spotify API to get additional information for your favorite songs on Spotify.
This might not work with windows at the moment bc. there is no uwsgi for windows. Comment out uwsgi in requirements to develop this way
If you're using VS Code and new to Flask, I recommend reading the Flask Tutorial in Visual Studio Code. It can help with step 2 and 3 of the following list.
-
Clone the repository from GitHub
-
Create a virtual environment with
python -m venv venv
while in the flask directory -
From that environment, install the requirements from requirements.txt
- Example in VS Code: after step 2, in the bottom left corner or via VS Code Command, change your python interpreter to the one with 'venv' in its name
- with the VS Code Command 'Terminal: Create New Integrated Terminal', create a new terminal for your virtual environment
- Install the requirements from that terminal
-
Set the environment Variables: If you chose to work with VS Code and use PowerShell as your Terminal, you can set the environment variables by modifying the Activate.ps1 Skript. If you don't use PS, just adapt the activate (bash) or activate.bat (cmd). I suggest setting the environment variables after the "VIRTUAL_ENV" Variable has been set (l. 215). It could look like this:
# Environment Variables for the SpotifyTools app $env:FLASK_SECRET_KEY="your_secret_key_generated_with_os.urandom(24)" $env:SPOTIPY_CLIENT_ID="your_spotify_client_id_here" $env:SPOTIPY_CLIENT_SECRET="your_spotify_client_secret_here" $env:SPOTIPY_REDIRECT_URI="http://127.0.0.1:5000" $env:GENIUS_CLIENT_ACCESS_TOKEN="your_genius_client_access_token_here" $env:REDIS_HOST="your.redis.host.here" $env:REDIS_PASSWORD="your_redis_password_here" # The following lines are only for the development environment (debugging) $env:FLASK_ENV="development" $env:FLASK_DEBUG="True"
-
create Network
net
if not existsdocker network create net
-
Start the application (old Syntax:
docker-compose up
)docker compose up
These Links should help you understandig this project and help you to get to relevant websites quickly.