Skip to content

B-Antonis96/BowlingGameBackEnd

Repository files navigation

Bowling Game Back End

Dit project vormt de backend-infrastructuur voor een Augmented Reality Bowling Game.

Projectstructuur

Microservices

De API Gateway beheert de toegang en communicatie tussen de volgende microservices:

  • user-service: Behandelt gebruikersbeheer (URI: /api/user/**).
  • game-service: Beheert game en scores (URI: /api/game/**).
  • notification-service: Zorgt voor het versturen van meldingen (URI: /api/notification/**).

De API Gateway zorgt ervoor dat de verschillende services bereikbaar zijn via uniforme routes en maakt gebruik van een beveiligingsconfiguratie.

Databases

  • user-db: Database met MySql.
  • game-db: Msql database.
  • notification-db: Database met MongoDb.

Uitbreidingen

  • Unit tests: Unit testing op alle service classes.
  • Keycloak: Keycloak niet geheel kunnen implementeren, een probleem met "HTTP Header size". Niet meer de tijd gehad dit op te lossen.
  • Hosting: Gehost via DDNS bij Bryan. Vandaar geen URL.

API Diagram

API Diagram

Endpoints

User

POST - /api/user/login

http://localhost:8086/api/user/login

/api/user/login

GET - /api/user/{id}

http://localhost:8086/api/user/1

/api/user/{id}

GET - /api/user/all

http://localhost:8086/api/user/all

/api/user/all

PUT - /api/user/update/{id}

http://localhost:8086/api/user/update/2

/api/user/update/{id}

DELETE - /api/user/delete/{id}

http://localhost:8086/api/user/delete/1

/api/user/delete/{id}

Game

POST - /api/game/create/{userId}

http://localhost:8086/api/game/create/2

/api/game/create/{userId}

GET - /api/game/{id}

http://localhost:8086/api/game/1

/api/game/{id}

GET - /api/game/all

http://localhost:8086/api/game/all

/api/game/all

PUT - /api/game/update/{id}

http://localhost:8086/api/game/update/1

/api/game/update/{id}

DELETE - /api/game/delete/{id}

http://localhost:8086/api/game/delete/1

/api/game/delete/{id}

Notification

GET - /api/notification/ping

http://localhost:8086/api/notification/ping

/api/notification/ping

POST - /api/notification/create

http://localhost:8086/api/notification/create

/api/notification/create

GET - /api/notification/{id}

http://localhost:8086/api/notification/{{notificationId}}

/api/notification/{id}

GET - /api/notification/all

http://localhost:8086/api/notification/all

/api/notification/all

PUT - /api/notification/update/{id}

http://localhost:8086/api/notification/update/{{notificationId}}

/api/notification/update/{id}

DELETE - /api/notification/delete/{id}

http://localhost:8086/api/notification/delete/{{notificationId}}

/api/notification/delete/{id}

About

Backend Project with all microservices for the BowlingGame created by Dennis Nijs and Bryan Antonis

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages