Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.01 KB

README.md

File metadata and controls

18 lines (15 loc) · 1.01 KB

CircleCI Go Report Card

Soccer Sim

Run

  1. Add a .env file with APP_DB_USER, APP_DB_PASS, APP_DB_NAME, and APP_DB_ADDR for a postgres database
  2. Add Goose binary from https://github.com/pressly/goose
  3. Run goose postgres $APP_DB_ADDR up in ROOT/data directory
  4. Start server with go run main.go

The main functions of this project are:

  1. Create and store soccer teams and their seasons
  2. Create new seasons and generate a randomized 38 match schedule for each team
  3. Allow for simulating the results of a season (currently based on a random selected goal total for the home and away team)
  4. Save the simulated matches and team record/goals scored
  5. Expose this functionality in a REST API for SoccerSimUI and testing
  6. Keep full test coverage and with 12 factor design