If you don't have Docker already installed, follow these instructions. Then, in the backend directory, create a copy of .example-env file and call it .env
To find the Hue Bridge IP address, open your Hue app and go to Settings > My Hue System > Philips Hue > i > IP-address. Set the HUE_BRIDGE_IP_ADDRESS variable to the Hue Bridge IP address in the .env file.
To find the necessary Spotify API credentials, follow the steps below.
- Log into Spotify for Developers using your Spotify account
- Create an app called spotihue, which will enable you to have access to the Spotify API credentials
- Go to your Dashboard > spotihue > Settings
- Under Basic Information, ensure that the App Name is spotihue and that the Redirect URIs is
http://localhost:8888/callback/
- Obtain your Username, Client ID, and Client Secret.
Set the SPOTIFY_USERNAME, SPOTIFY_CLIENT_ID, and SPOTIFY_CLIENT_SECRET variables using the Spotify API credentials in the .env file.
For additional information on the Spotify API, look here.
docker compose up
- Press and hold button on top of Hue Bridge for about 3 seconds
- Go to
localhost:8000/docs
to interact with the spotihue API
- Start
VS Code
- Open
spring
- Run the
Dev Containers: Open Folder in Container...
command from the Command Palette or Quick Actions Status Bar - Select the
Dockerfile.dev
file - Wait until the development container is running
- Have fun developing!
- studioimaginaire - for phue
- spotipy-dev - for spotipy
- hcannan for your advice