8000 GitHub - Jeck0v/BrowserQuest: A HTML5/JavaScript multiplayer game experiment with K8S Infra - Team1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A HTML5/JavaScript multiplayer game experiment with K8S Infra - Team1

License

Notifications You must be signed in to change notification settings

Jeck0v/BrowserQuest

 
 

Repository files navigation

BrowserQuest Rework 2025 [updated & with Socket.IO V2]

Team 1:

Changes

  • Updated backend and frontend to use latest Socket.io and NodeJS version
  • Fixed bugs and error.
  • Updated client and server configuration files to use dynamic hostnames.
  • Modified the client's config.js to properly parse and use the dynamic hostname.
  • Make a dockerfile for running the game everywhere.
  • Improved security with a firewall that blacklist ip base on identified bad behavior, limitation of the number of possible connexion try by IP, validation of player entry.
  • Creating a K8S infrastructure with minikube
  • Add path for access to wesbsocket
  • Add loadbalancing with nginx-ingress
  • Add HPA for K8S
  • Add docs for start minikube
  • Removed unecessary console.log, error, ...
  • Refactored some part of the code

HOW TO RUN?

setup config json file in client/config and server/config (cf documentation)

docker build -t browserquest .
docker run -p 8080:8080 -p 8000:8000 browserquest

If you want to improve the project, you'll need to update the docker image and rebuild + refer to dockerhub, so modify browserquest-infra/base/deployment.yaml, like this:

docker build -t DockerUserName/ImageName:test .
docker login
docker push DockerUserName/ImageName:test

in browserquest-infra/base/deployment.yaml:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: browserquest
  namespace: browserquest
spec:
  replicas: 3
  selector:
    matchLabels:
      app: browserquest
  template:
    metadata:
      labels:
        app: browserquest
    spec:
      containers:
        - name: browserquest
          image: DockerUserName/ImageName:test
          ports:
            - containerPort: 8080
              name: http
            - containerPort: 8000
              name: websocket
          resources:
            requests:
              cpu: 500m
            limits:
              cpu: 1000m

Documentation

Documentation is located in client and server directories, and browserquest-infra/docs

License

Code is licensed under MPL 2.0. Content is licensed under CC-BY-SA 3.0. See the LICENSE file for details.

Credits

Created by Little Workshop:

About

A HTML5/JavaScript multiplayer game experiment with K8S Infra - Team1

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.9%
  • CSS 5.3%
  • HTML 0.7%
  • Python 0.1%
  • Batchfile 0.0%
  • Shell 0.0%
0