- JDK 11
- Maven
- PostgreSQL
- Swing GUI Framework
- Docker, Docker compose
- Build:
./build-app.sh
cd build
- Run
- Configuration
server.properties file:
server.host=${SERVER_HOST}
server.port=${SERVER_PORT}
database.host=${POSTGRES_HOST}
database.port=${POSTGRES_PORT}
database.name=${POSTGRES_DB}
database.username=${POSTGRES_USERNAME}
database.password=${POSTGRES_PASSWORD}
Server options can be set using environment variables or .env file. File server.properties must be in the same directory as server.jar
- Server
java -jar server.jar
- Client
java -jar client.jar [SERVER_HOST] [SERVER_PORT] [gui/cli]
- PostgreSQL in docker container for Server-side of app
docker compose up --detach
Don't forget to stop the docker container