A small project written in typescript that synchronizes a Spotify playlist with current listing of ESKA Gorąca 20-tka. It uses a webscrapper to first get data from the page and then updates the playlist via the Spotify API.
- clone this repo
- install packages with
npm i
- get the client id & client secret on Spotify Developer Dashboard
- fill out the
.env
file - run the script with
npm start
- go to localhost:[port]
- login with your spotify account
- choose the playlist
To run this app with docker build the image and simply run it a container. The exposed port is 8888
. You should also mount a volume on /app/data
to preserve the user and the choosen playlist. The healthcheck checks whether the app is running and the user is logged in, if either is false the container will be unhealthy.