oreporan / wePlayMin

WePlay - the social football managing app
0 stars 1 forks source link

moving forward #12

Closed oreporan closed 8 years ago

oreporan commented 8 years ago

ok - I made the gameEndpoint, for now there is addGame - creates a game, and pushes this gameId to the league's games array.

In terms of the server, the next step is inside the games controller.

1) When a game is created, a cronjob needs to be set, to the time the game is played. X time before the game is played, the cronjob sets off and creates a game with the users array, creating teamA and teamB. From that point, any client that calls getGameById will see get the game object with the 2 teams ready.

Right now the user will have to add each game manually, we don't have some kind of system that creates the next game each week, this will be a feature in the next release.

The question is, should we do (1) now, or stop and move to the client?

oreporan commented 8 years ago

I think now that we have @nirla joining the team, We can continue with the server (doing cron jobs for example) and Nir will slowly get in to the client