This is a quick-and-dirty proof-of-concept Strength of Competition analyzer for an ESPN fantasy baseball league.
- Clone this repo.
- Run
npm install
to install dependencies. - Ensure MongoDB is running locally, change DB connection string in scripts if differently configured.
- Run
node resultLoader.js
to load the data from the CSVs into Mongo. - Run
node rankResults.js
to run the ranking algorithm over the results in Mongo. - Run
node calculateOverallRanks.js
to run a Mongo map-reduce process to calculate aggregate season-long results.