Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.98 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.98 KB

deckify

GitHub go.mod Go version of a Go module GoDoc reference example GoReportCard example GitHub license

Deckify collects the recently played musics from spotify users and creates automatic collaborative playlists

How to run it locally

You'll need to install Go in your machine. Follow the instructions in https://golang.org/doc/install or use the package manager of your preference.

After this:

  1. Download the source code;
  2. Open your terminal/prompt within the project folder path;
  3. Create the following environment variables:
    • SPOTIFY_ID={your spotify client id}
    • SPOTIFY_SECRET={your spotify client secret}
    • DECKIFY_COLLECTOR_PAGESIZE=100
    • DECKIFY_COLLECTOR_CALL_INTERVAL_TIME_IN_SECONDS=5
    • DECKIFY_STACKER_PAGESIZE=100
    • DECKIFY_STACKER_CALL_INTERVAL_TIME_IN_SECONDS=15
    • DECKIFY_STACKER_TRACK_WINDOW_IN_DAYS=30
  4. Run the following commands:
go mod download
go run deckify.go

How to run it locally (Docker)

  1. Create an .env file and set the following environment variables:
    • SPOTIFY_ID={your spotify client id}
    • SPOTIFY_SECRET={your spotify client secret}
    • DECKIFY_COLLECTOR_PAGESIZE=100
    • DECKIFY_COLLECTOR_CALL_INTERVAL_TIME_IN_SECONDS=5
    • DECKIFY_STACKER_PAGESIZE=100
    • DECKIFY_STACKER_CALL_INTERVAL_TIME_IN_SECONDS=15
    • DECKIFY_STACKER_TRACK_WINDOW_IN_DAYS=30
  2. Run the following commands:
docker pull silvanoneto/deckify
docker run --env-file .env -p 8080:8080 --rm silvanoneto/deckify