- Indefinitely search for stored songs on Spotify
- Create Spotify playlists for channels and add songs to them
- Cloudwatch Event (CRON)
- Batches of items added to "Tracks" DynamoDB table
Before running locally or deploying this, use token_gen.py
to generate and store a Spotify token into DynamoDB.
virtualenv ./.venv
source ./.venv/bin/activate
pip3 install -r requirements.txt
python token_gen.py
SPOTIPY_CLIENT_ID=<id> SPOTIPY_CLIENT_SECRET=<secret> SPOTIPY_USER=<user> python3 main.py
deactivate
make setup
make to-spotify
make deploy-to-spotify
Fill in ./functions/to-spotify/env.json
with SPOTIPY_CLIENT_ID
and SPOTIPY_CLIENT_SECRET
, and then:
apex build to-spotify >/dev/null && apex deploy to-spotify --region eu-west-1 -ldebug --env-file ./functions/to-spotify/env.json
- All from λ1