8000 GitHub - LionH/chess-club: Chess Server that will provide restful APIs and a complete Web UI. · GitHub
[go: up one dir, main page]

Skip to content

About

Chess Server that will provide restful APIs and a complete Web UI.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

341 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

Chess Server that will provide restful APIs and a complete Web UI.

Build and Run from Source

$ mvn clean package

This builds an executable jar file in the target folder. This jar file can now be started as:

$ java -jar chess-club-1.0.0.jar

The server is then listening on port 8080. This port can be overridden:

$ java -Dserver.port=8888 -jar chess-club-1.0.0.jar

Run from docker image

Run on an embedded H2 database (volatile)

The default configuration will start a volatile, in-memory database. This means that data will only live as long as the container is running.


docker run -p 80:80 chesscorp/chess-club

Run on an embedded H2 database (persistent)

The embedded H2 database will allow you to without additional components. All data is stored on the filesystem in the /data folder of the container.


docker run \
    -v /tmp/chess-database:/data \
    -p 80:80 \
    -e dbddl=update \
    chesscorp/chess-club

Run on an external PostgreSQL database

The chess-club application has also a built-in PostgreSQL driver. To use it, override environment variables:


docker run \
    -p 80:80 \
    -e dburl=jdbc:postgresql://127.0.0.1:5432/chess1 \
    -e dbusername=<your database username> \
    -e dbpassword=<your database password> \
    -e dbdatabase=POSTGRESQL \
    -e dbddl=update \
    chesscorp/chess-club

See also

Our in-house automation scripts, docker-compose configurations and other stuff may be found in the ChessCorp/chess-club-automation repository.

License

MIT © Yannick Kirschhoffer

About

Chess Server that will provide restful APIs and a complete Web UI.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0