Backend for handling socket connection between host and client components.
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:
- cast-a-spell-host
- cast-a-spell-client[TBD]
It is build using gradle and has support for deploying to AWS.
./gradlew runBoot
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.