nodejs, express, AWS DynamoDB
npm install
to install modulesgrunt
to start servergrunt test
to run test cases
- List of upcoming games: http://localhost:3001/api/game?tournamentId=2015%2F2016&startTime=20160112&op=gte&limit=10
- List of past games: http://localhost:3001/api/game?tournamentId=2015%2F2016&startTime=20160112&op=lt&isAscending=false&limit=10
- List of Teams: http://localhost:3001/api/teamStanding?tournamentId=2015%2F2016
- Team Info: http://localhost:3001/api/teamStanding/2015%2F2016-Manchester United -- Note: The id used in Team Info api is from List of Teams result
- Create/Update/Delete Tournament: http://localhost:3001/api/tournament/:id?token=admin
- Create/Update/Delete Games: http://localhost:3001/api/game/:id?token=admin
- Create/Update/Delete Teams: http://localhost:3001/api/teamStanding/:id?token=admin
- Read and populate Barclays Premier League or any other league tournament info
- data from https://github.com/openfootball/eng-england/tree/master/2015-16
- node seed/createTables.js - create dynamodb tables
- node seed/insert.js - insert all data based on seed/2015-16/*.txt
— feel free to use any available public data, or perform web scraping
- read every 12 hours to get update from: https://github.com/openfootball/eng-england/tree/master/2015-16