Skip to content

cnad-io/battle-chat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

battle-chat

Gamificated Chat

HOW TO

Run infinispan (cache) server

podman run -d -p 11222:11222 -e USER="admin" -e PASS="password" --net=host quay.io/infinispan/server:13.0

Run web service

# dev mode
./mvnw compile quarkus:dev

Creating Caches

POST /rest/v2/caches/{cacheName}

The following "standard" formats are interchangeable:

application/x-java-object

application/octet-stream

application/x-www-form-urlencoded

text/plain

Cache creation example

curl -v -u admin:password --digest -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST http://localhost:11222/rest/v2/caches/character -d "@./conf/character.json"

Get your cache

curl -u admin:password --digest -X GET http://localhost:11222/rest/v2/caches/character

Cache configuration

{
  "distributed-cache": {
    "mode": "SYNC",
    "statistics": true,
    "encoding": {
      "key": {
        "media-type": "application/x-protostream"
      },
      "value": {
        "media-type": "application/x-protostream"
      }
    }
  }
}

Quickstart

RUN LOCAL

podman run -d -p 11222:11222 -e USER="admin" -e PASS="password" --net=host quay.io/infinispan/server:13.0
curl -v -u admin:password --digest -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST http://localhost:11222/rest/v2/caches/character -d "@./conf/character.json"
./mvnw compile quarkus:dev

NATIVE BUILD AND PUBLISH

./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=podman
podman build . -t quay.io/sergio_canales_e/battle-chat-openshift:0.9.0
podman push --creds ADMIN:PASS quay.io/sergio_canales_e/battle-chat-openshift:0.9.0

About

Gamificated Chat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 60.8%
  • Java 34.6%
  • Dockerfile 4.6%