https://developer.hashicorp.com/terraform/install
git clone https://github.com/ryersacl/ManageSpotify.git cd ManageSpotify/
Sur https://developer.spotify.com/dashboard -> Create App Donner nom + description Redirect URIs = http://localhost:27228/spotify_callback
Créer un fichier .env dans le répertoire git cloné:
SPOTIFY_CLIENT_ID=<your_spotify_client_id> SPOTIFY_CLIENT_SECRET=<your_spotify_client_secret>
Lancer un conteneur Docker dans le répertoire git:
docker run --rm -it -p 27228:27228 --env-file .env ghcr.io/conradludgate/spotify-auth-proxy
Cliquer sur le lien Auth URL et créer un fichier "terraform.tfvars" contenant :
api_key = "your_spotify_api_key_return_in_your_terminal_after_passing_the_auth_url"
terraform init
https://registry.terraform.io/providers/conradludgate/spotify/latest/docs
terraform apply -auto-approve