- schedule-gen-rs - league schedule generator library
- nickel.rs - rust web framework
- rust language - rust language
- Clone repo:
git clone https://github.com/freiguy1/schedule-gen-web
- Run server:
cd schedule-gen-web && cargo run
- Post a json league specification to http://localhost:3000; an example spec is provided below
- ...
- Profit
{
"teams" : [
["0", "teamname0"],
["1", "teamname1"],
["2", "teamname2"],
["3", "teamname3"],
["4", "teamname4"]
],
"locations" : [
["0", "field0"],
["1", "field1"]
],
"start_date" : {
"day": 16,
"month": 9,
"year": 2014
},
"end_date" : {
"day": 23,
"month": 12,
"year": 2014
},
"game_weekday" : {
"day": "Tuesday",
"game_times": [
{
"time": {
"hour": 16,
"min": 0
},
"location_ids": ["0"]
},
{
"time": {
"hour": 17,
"min": 0
},
"location_ids": ["0", "1"]
}
]
}
}