building a dataset of NBA team/player stats from balldontlie.io and data.nba.com
- go >=v1.14
- PostgreSQL >=v13
mkdir boardman
cd boardman
gh repo clone tacohole/boardman
cat boardman-config.env
- add your database URL as
DATABASE_URL=postgresql://user:secret@host:port/database_name - set your database timeout as
DB_TIMEOUT=30s(accepts ms/s/m/h)
go build -o boardman
each command creates the relevant relations in Posgres and populates tables with data
./boardman get teams
./boardman get players
./boardman get coaches
./boardman get games
./boardman get player-stats
./boardman get game-stats
./boardman get paid
shout out to nbasense.com for NBA API documentation