Spotfire Solver
This is the Optaplanner service that applies the algorithm for optimizing a playlist.
Requirements
- ASDF
- AWS Account
- A Spotify Account
Setup
asdf install
to install the required tools specified in the.tool-versions
file.
Deployment
./gradlew deploy
Running Locally
- Boot up the
spotfire-website
and thespotfire-api
locally. - Retrieve the
access token
from the running instance of the website, by opening it in your browser, clicking on the arrow on the top right corner and selectingCopy Access Token
. - Add environment variables to the running config for the
SolverHanlderSpec
. Required env are:- AWS_PROFILE
- ACCESS_TOKEN (the one copied on step 2)
- Import a playlist using the
spotfire-website
- Retrieve the file location for the imported playlist from the logs in the
spotfire-api
- Add it to the
EXTRACT_PATH
in theSolverHandlerSpec
. - Run the
SolverHandlerSpec