Skip to content

WayTooShort/MKC-Server

Repository files navigation

MKC Server

Description

Software component which is responsible for the logic in the game.

Authors

Team 04 Seher, Betül, Mona, Ella, Orhan, Jens

Project Structure

Issues

https://gitlab.uni-ulm.de/softwaregrundprojekt/2023-2024/gruppenprojekt/group-04/server/-/boards/893

Languages and Frameworks

  • IntelliJ IDEA or other IDE (documentation only for IntelliJ)
  • Java
  • Docker

Prerequisites

  • IntelliJ IDEA

Source Classes

/mkc_server/src/main/java

Test Classes

/mkc_server/src/test/java

Resources

/mkc_server/src/main/resources

Dockerfile

/mkc_server/Dockerfile

Test GUI

/mkc_server/src/test/testgui

Dockerfile

/mkc_server/src/test/test-configs

Run Configuration

/server/run-local

Installation

IntelliJ

1. Clone with HTTPS

Copy the URL for Clone with HTTPS on the gitlab repository.

Clone with HTTPS PNG

2. New Project from Version Control

Create new Project from Version Control. Paste the URL for the gitlab repository.

Get from version control PNG

3. Add pom.xml to Project

Right click the pom.xml file and select Add as Maven Project.

Add Maven Project PNG

4. Set Java SDK language level

Go to File > Project Structure and select temurin-17 as SDK (download it if not showing).
Ensure the language level is set to 17 in the Project Settings and in the module specific settings.

Project Settings PNG Module Settings PNG

Run

Local

Add Run Configuration

1. Find run config for main class

Go to the main class located in /mkc_server/src/main/java/de/sopra/Main.
Click on the green arrow next to the main method and select Modify Run Configuration.

Add Run Config PNG

2. Add arguments to run config

Find the program arguments line and expand it.

Run Config Settings PNG

3. Paste run config from run-local

Paste the arguments from /server/run-local into the program arguments section.

Run Config PNG

4. Start main method

Run the main method.

Test GUI

Website

The Test GUI is a static website located in mkc_server/src/test/test-gui.
Run by opening the index.html file in a browser or by hosting a local webserver with tools like nodejs or python.
See mkc_server/run-gui.sh for more information.

Deployment

Docker

The Dockerfile in mkc_server/Dockerfile compiles and packages the code.
No default mount is available for adding configs to the container.
See mkc_server/build.sh and mkc_server/run.sh for more information.

About

Game-Server for Marius Kingdom Conquest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors