A basic game made with constraints for distributed systems's course at ESIR :
- Realtime client-server multiplayer
- High Availability (SPOF elimination, redundancy, automatic failure detection & mitigation)
- Basic graphical interface
- Wait for servers to start and page being displayed
- Navigate to the left side "Docker" section
- Stop the currently used container (deno-1, port 8080)
- Observe that websockets automatically migrate to other replicas and the game still works !
Requirements : Deno(1.15.1)
cd HA-RealtimeGame
export $(cat .env | sed 's/#.*//g' | xargs)
deno run --allow-net --allow-read --allow-env --watch src/server.ts
cd HA-RealtimeGame
docker build -t realtimegame:latest .
docker run -it -p 8000:8000 -p 8080:8080 --name=realtimegame realtimegame:latest
cd HA-RealtimeGame
docker-compose up --build
cd HA-RealtimeGame
export $(cat .env | sed 's/#.*//g' | xargs)
deno test --allow-net --allow-env
Developed by Leo Rolland and Valentin Lorand.