AquiGorka / kickoff

A multiplayer real-time turn-based soccer HTML5 game for virtual reality.
MIT License
2 stars 0 forks source link

Setup API layer #4

Open AquiGorka opened 7 years ago

AquiGorka commented 7 years ago

Develop API layer to respond to requests to the http & socket servers

AquiGorka commented 7 years ago

Using concepts from:

The API will respond to a domain driven design where: {HTTP requests / Websocket events} => [Controller] => [Service] => [Repository/DAO] => {struct}

In the first iterations maybe the DAO/Repository layer might be omitted but eventually it will be developed when a database takes the place of the struct (and persistence is added).

This ticket will deliver the code that installs a versioned endpoint that initiates the layers up to an empty game struct (that will hold the current state of the game).