Go to file
2022-01-05 21:52:36 +13:00
cmd/go-scrobble 0.1.0 Split repos, Add API docs, new env vars 2021-12-25 15:40:20 +13:00
docs Update API Docs 2021-12-25 20:58:24 +13:00
init Update scripts for new location 2021-12-25 13:30:55 +13:00
internal/goscrobble Add new spotify ctx 2022-01-05 21:52:36 +13:00
migrations 0.0.33 2021-08-13 22:38:03 +12:00
.env.example 0.1.0 Split repos, Add API docs, new env vars 2021-12-25 15:40:20 +13:00
.gitignore 0.0.29 2021-04-11 20:19:28 +12:00
.gitlab-ci.yml 0.1.0 Split repos, Add API docs, new env vars 2021-12-25 15:40:20 +13:00
go.mod Add new spotify ctx 2022-01-05 21:52:36 +13:00
go.sum Add new spotify ctx 2022-01-05 21:52:36 +13:00
LICENSE Initial commit 2021-03-23 19:07:39 +13:00
main Add new spotify ctx 2022-01-05 21:52:36 +13:00
README.md Update API Docs 2021-12-25 20:58:24 +13:00

go-scrobble

Golang based music scrobbler.

Stack: Go 1.16+, Node 15+, React 17+, MySQL 8.0+, Redis

There are prebuilt binaries/packages available.

Copy .env.example to .env and set variables. You can use https://www.grc.com/passwords.htm to generate a JWT_SECRET.

More documentation

Changelog

Environment Variables

Setup MySQL

create user 'goscrobble'@'%' identified by 'supersecurepass';
create database goscrobble;
grant all privileges on goscrobble.* to 'goscrobble'@'%';

Local Development

cp .env.example .env # Fill in the blanks
go mod tidy
CGO_ENABLED=0 go run cmd/go-scrobble/*.go

Access API @ http://127.0.0.1:42069/api/v1

Prod deployment

cp .env.example .env # Fill in the blanks
go build -o goscrobble cmd/go-scrobble/*.go
./goscrobble

Build API Docs

cd docs/api && docker run --rm --name slate -v $(pwd)/build:/srv/slate/build -v $(pwd)/source:/srv/slate/source slatedocs/slate build

Test API Docs

cd docs/api && docker run --rm --name slate -p 4567:4567 -v $(pwd)/source:/srv/slate/source slatedocs/slate serve

Support Development!

Feel free to support hosting and my coffee addiction https://liberapay.com/idanoo