Skip to content

Commit 2588a15

Browse files
committed
Add REAME
1 parent 0bbaa00 commit 2588a15

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

README.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# MLS ELO
2+
3+
Calculates [ELO rankings](https://en.wikipedia.org/wiki/Elo_rating_system) for [MLS teams](https://www.mlssoccer.com/) using the [FIFA Women's World Rankings](https://en.wikipedia.org/wiki/FIFA_Women%27s_World_Rankings) procedure.
4+
5+
## Current Standings
6+
7+
```sh
8+
» mls-elo standings
9+
Standings as of 2017-7-22
10+
11+
1.) FC Dallas (1379)
12+
2.) Toronto FC (1379)
13+
3.) New York City FC (1369)
14+
4.) Chicago Fire (1362)
15+
5.) Atlanta United (1359)
16+
6.) Red Bull New York (1346)
17+
7.) Sporting Kansas City (1331)
18+
8.) Seattle Sounders (1311)
19+
9.) Vancouver Whitecaps (1308)
20+
10.) Houston Dynamo (1307)
21+
11.) Columbus Crew (1282)
22+
12.) Montreal Impact (1269)
23+
13.) Philadelphia Union (1254)
24+
14.) Real Salt Lake (1254)
25+
15.) New England Revolution (1253)
26+
16.) Portland Timbers (1253)
27+
17.) Orlando United (1252)
28+
18.) Colorado Rapids (1248)
29+
19.) San Jose Earthquakes (1248)
30+
20.) LA Galaxy (1240)
31+
21.) DC United (1206)
32+
22.) Minnesota United (1194)
33+
```
34+
35+
## Getting started
36+
37+
To make the cli available
38+
39+
```sh
40+
$ git clone https://github.com/doug-wade/mls-elo
41+
$ cd mls-elo
42+
$ npm i
43+
$ npm link .
44+
```
45+
46+
Once the cli is available, bootstrap the database
47+
48+
```sh
49+
$ mls-elo create
50+
$ mls-elo data
51+
$ mls-elo import
52+
$ mls-elo rank
53+
```
54+
55+
Now that the cli is available, and the database is bootstrapped, you can use the cli to investigate the current MLS standings
56+
57+
```sh
58+
$ mls-elo standings
59+
# Outputs the current MLS teams and their ELO rankings
60+
$ mls-elo predict SJ at SEA
61+
# Predicts the outcome of a given match
62+
```
63+
64+
## Keeping the database up-to-date
65+
66+
To update the database with the latest data, run
67+
68+
```sh
69+
$ mls-elo data
70+
$ mls-elo import
71+
$ mls-elo rank
72+
```
73+
74+
This will fetch the latest data, import it into the database, and recalculate the rankings data.

0 commit comments

Comments
 (0)