docs: 📝 add usage and listy sync docs
continuous-integration/drone/push Build is passing Details

main
RaviAnand Mohabir 11 months ago
parent 8750fc4c1e
commit 2028014a50

@ -10,6 +10,10 @@ A web application that syncs your liked songs into a monthly playlist built with
- Reuse playlists following the same naming scheme
- Run the sync script as a one-time command (`listy sync`) or on a time (`listy sync -r 5m`)
## Usage
Once you've deployed your Listy instance, all you need to do is head to http(s)://listy.example.com/auth/oidc/spotify/redirect where you will be redirected to Spotify for authorization, and then registered in Listy's database for monitoring. As long as the sync timer is running, or you setup a CRON job for the `listy sync` command, your liked songs will then automatically be synced with the current monthly playlist.
## Deployment
Listy can be run as a self-hosted application as a Docker container or with Go installed.
@ -62,6 +66,12 @@ Finally, run the following in the folder where your `docker-compose.yml` and `co
$ docker compose up -d
```
## `listy sync`
Besides the Go server (run with `listy server run`) the `sync` command provides most of the functionality in a self-contained worker that can either be run once or repeated by providing the `--repeat` flag which will be parsed by Go's [`time.ParseDuration()`](https://pkg.go.dev/time#ParseDuration) function. This will allow the sync script to run indefinitely.
Alternatively, you can setup the `listy sync` command as a CRON job or on Kubernetes as a `CronJob` resource.
## License
Listy is licensed under the [MIT license](./LICENSE).

Loading…
Cancel
Save