https://github.com/projectweekend/song-feed-worker
An experiment with Spotify playlists
https://github.com/projectweekend/song-feed-worker
Last synced: over 1 year ago
JSON representation
An experiment with Spotify playlists
- Host: GitHub
- URL: https://github.com/projectweekend/song-feed-worker
- Owner: projectweekend
- License: mit
- Created: 2015-05-04T03:13:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T10:46:19.000Z (about 11 years ago)
- Last Synced: 2025-02-01T19:29:45.904Z (over 1 year ago)
- Language: Python
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Environment variables
* `AWS_ACCESS_KEY_ID`: The AWS Access Key associated with your account
* `AWS_SECRET_ACCESS_KEY`: The AWS Secret Access Key associated with your account
* `SPOTIFY_CLIENT_ID`: The Spotify Client ID for your app in the [Spotify Developer portal](https://developer.spotify.com/my-applications)
* `SPOTIFY_CLIENT_SECRET`: The Spotify Client Secret for your app in the [Spotify Developer portal](https://developer.spotify.com/my-applications)
* `ECHO_NEST_API_KEY`: The Echo Nest API Key from your [developer account page](https://developer.echonest.com/account/profile).
### Build a Docker image
```
docker build -t name_of_image .
```
### Launch worker container for local development
```
docker run -it \
-e AWS_ACCESS_KEY_ID=accessKeyValue \
-e AWS_SECRET_ACCESS_KEY=secretKeyValue \
-e SPOTIFY_CLIENT_ID=spotifyClientIdValue \
-e SPOTIFY_CLIENT_SECRET=spotifyClientSecretValue \
-e ECHO_NEST_API_KEY=echoNestApiKeyValue \
-v $PWD:/src name_of_image
```
### Launch worker container
```
docker run --rm \
-e AWS_ACCESS_KEY_ID=accessKeyValue \
-e AWS_SECRET_ACCESS_KEY=secretKeyValue \
-e SPOTIFY_CLIENT_ID=spotifyClientIdValue \
-e SPOTIFY_CLIENT_SECRET=spotifyClientSecretValue \
-e ECHO_NEST_API_KEY=echoNestApiKeyValue \
-- name name_of_container name_of_image
```