mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 08:25:14 +00:00
18 lines
449 B
Markdown
18 lines
449 B
Markdown
# go-scrobble
|
|
|
|
Golang based music scrobbler. MySQL backend.
|
|
|
|
|
|
## Setup MySQL
|
|
|
|
create user 'goscrobble'@'%' identified by 'supersecurepass';
|
|
create database goscrobble;
|
|
grant all privileges on goscrobble.* to 'goscrobble'@'%';
|
|
|
|
## Local build/run
|
|
go mod tidy
|
|
CGO_ENABLED=0 MYSQL_HOST=127.0.0.1 MYSQL_USER=goscrobble MYSQL_PASS=supersecurepass MYSQL_DB=goscrobble go run cmd/go-scrobble/*.go
|
|
|
|
|
|
## Run local tests
|
|
go test test/* |