Categorygithub.com/robby-barton/stats-go
module
0.0.0-20241020143619-503c5e8b7248
Repository: https://github.com/robby-barton/stats-go.git
Documentation: pkg.go.dev

# README

College Football Computer Ranking

A set of Go services for ranking college football teams.

Development

Setup

Run make modules to sync modules with go.mod.

Environment

Copy .env-sample to .env and set the variables to the desired values.

The services are currently set up to only connect to PostgreSQL databases.

Services

Running and Building

Each of the services can be run locally using make {ranker,updater}.

When running the services locally you can pass command line arguments by appending OPTS="..." to the make call: make ranker OPTS="-t 25".

Ranker

Ranker will generate a ranking for the year/week requested and print the results.

Options

OptionTypeDefaultDescription
-y YEARintmost recentThe year to rank
-w WEEKintmost recentThe week of the season to rank
-fboolfalseRank the FCS
-t NintallPrint the top N teams
-rboolfalsePrint the SRS rating instead of full ranking

Updater

Updater will update the database with game information and new rankings.

Updater can run on-demand updates or run as a service and update on a schedule.

Options

OptionDefaultDescription
-strueRun as scheduler
-gfalseUpdate games now. Will run once and exit.
-rfalseUpdate current ranking now. Will run once and exit.
-afalseUpdate all games or rankings. Use with -g or -r.

Scheduler

The updater can run in scheduled mode which will wake up and search for new games finished every 5 minutes. If a new game is found it will add the game info to the database and update the current rankings.

# Packages

No description provided by the author