Skip to content

Spring boot micro-service for handling socket connections

License

Notifications You must be signed in to change notification settings

tmarinkovic/cast-a-spell-server

Repository files navigation

Cast a spell backend

License: MIT Backend for handling socket connection between host and client components.

Usecase

Using STOMP protocol and HTTP endpoint, it accepts new connections, creating room for maximum of 2 players and holds socket connection between them.

For example this components are connecting through this micro service:

It is build using gradle and has support for deploying to AWS.

Local usage

./gradlew runBoot

AWS usage

Prerequisite

Then simply run this 2 commands:

./gradlew createResources
./gradlew deploy

First command will take some time to finish. You can follow progress in aws console. It is creating aws role, ecr docker repository and ec2 instance running amazon linux 2.

Deploy command builds docker image, upload it to docker repository and updates stack.