boardman

command module
v0.0.0-...-bbe6e77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

boardman gets paid

building a dataset of NBA team/player stats from balldontlie.io and data.nba.com

Pre-Reqs

  • go >=v1.14
  • PostgreSQL >=v13

Install and Run

local installation
mkdir boardman
cd boardman
gh repo clone tacohole/boardman
configuration

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)
compile

go build -o boardman

what it does:

each command creates the relevant relations in Posgres and populates tables with data

get teams

./boardman get teams

get players

./boardman get players

get coaches

./boardman get coaches

get games

./boardman get games

get player season averages

./boardman get player-stats

get player single game stats

./boardman get game-stats

get all

./boardman get paid

shout out to nbasense.com for NBA API documentation

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd
get
util
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL