The server uses the java 18 SDK.
$ docker run --rm --d --name swe1db -e POSTGRES_USER=swe1user -e POSTGRES_PASSWORD=swe1pw -v data:/var/lib/postgresql/data -p 5432:5432
$ docker exec -it swe1db bash
$ psql -p 5432 -h localhost -U swe1user
CREATE DATABASE cardgamedb;
\c swe1db
Run sql skript from file database.sql
to create tables
Open the project in intellij and run all unit tests to confirm that everything is working correctly.
Open project in intellij and start the server. The preconfigured port is 10001 to match the curl script.
You can now run the curl script curl_script_modified.bat
to confirm that the server is working correctly!