You can send a request to the API URL:
curl -s https://lastfm-last-played.biancarosa.com.br/{{your-lasfm-username}}/latest-song | jq
The query string format
can receive the value shields.io
for you to generate your own Shields.io markdown badge.
[![Last.FM Last Played Song](https://img.shields.io/endpoint?color=blueviolet&url=https://lastfm-last-played.biancarosa.com.br/{{your-lastfm-username}}/latest-song?format=shields.io)](https://github.com/biancarosa/lastfm-last-played)
There aren't any frontend packages written yet because I am not a very strong frontend developer, so pull-requests are welcome, but I've written an example using basic JavaScript here.
On my own website, it looks like this:
Code is here.
Consider starring the repo, contributing to it and tweeting about it.
Docker and Docker Compose make things easy!
docker-compose up
# or if you want to run detached
docker-compose up -d
There is a comprehensive Makefile
in the project that can be used.
# install dependencies
make
# runs the app
make run
# other commands
make lint
make test
make integration-test
make coverage