Skip to content

jahuk/bet-platform-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bet Platform AngularJS

A simple app to track bet results for UEFA EURO 2016.

Motivation

Learn AngularJS, track bet results and have fun.

How it works?

Fixtures

"_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
      } 
    }   
  } 
]

Bets

  • 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"
    }
  ]
}

Results

  • 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

Views

Dashboard

dashboard

User

user

Match

match

About

Bet Platform AngularJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published