A simple app to track bet results for UEFA EURO 2016.
Learn AngularJS, track bet results and have fun.
- app use results from http://api.football-data.org/index,
- endpoint for UEFA EURO 2016 results: http://api.football-data.org/v1/soccerseasons/424/fixtures,
- example
"_links": {
"self": {
"href": "http://api.football-data.org/v1/soccerseasons/424/fixtures"
},
"soccerseason": {
"href": "http://api.football-data.org/v1/soccerseasons/424"
}
},
"count": 51,
"fixtures": [
{
"_links": {
"self": {
"href": "http://api.football-data.org/v1/fixtures/149855"
},
"soccerseason": {
"href": "http://api.football-data.org/v1/soccerseasons/424"
},
"homeTeam": {
"href": "http://api.football-data.org/v1/teams/773"
},
"awayTeam": {
"href": "http://api.football-data.org/v1/teams/811"
}
},
"date": "2016-06-10T19:00:00Z",
"status": "FINISHED",
"matchday": 1,
"homeTeamName": "France",
"awayTeamName": "Romania",
"result": {
"goalsHomeTeam": 2,
"goalsAwayTeam": 1,
"halfTime": {
"goalsHomeTeam": 0,
"goalsAwayTeam": 0
}
}
}
]
- each user bet result using json file,
- json could be prepare manually or generated from for example excel etc,
- each user has a separate file,
- example:
{
"id": 2,
"name": "Daniel",
"bets" : [
{
"id": 0,
"bet": "3-1"
},
{
"id": 1,
"bet": "0-2"
}
]
}
- there is a special rule to calculate points (check getPoints method from PointsService),
- in general user get from 0 do 6 points for match (depends on match day),
- base on fixtures and user bets application generate rankings