This is Code Critters, another mutation testing game.
-
Apache Maven
-
MySQL
or -
Docker and docker-compose
-
npm or yarn (only for developement)
For starting the game, you only need a MySQL Server (e.g. MariaDB) running. for the sake of simplicity, the project contains a docker-compose file that starts a MySql instance with
docker-compose up
A db-dump containing some demo data has also been added to the project. For development you also need an installation of npm (or yarn) to load frontend dependencies.
Since this project is build with the Spring framework, you can run the Project from
within your IDE. Only some frontend dependencies need to
be loaded. This needs to be done in the resources/static
folder and you can either use npm:
npm install
or yarn:
yarn install
To Configure the system, you need to edit the application.properties
in the resources
folder. This file also holds the database settings (Initially this data belongs to the docker
configuration).
To Deploy the project, you need to apply some changes in the src
:
- Uncomment the
PropertySource
-line inCode_CrittersServiceApplication
- Comment out the lines 5 to 14 in
application.properties
- Optional: Change the logging parameter to
WARN
After that you can execute
mvn clean compile package
to deploy the project.
To configure the server, you need a directory called resources
in the folder that
contains the .jar file. This directory needs to contain the application.properties
file,
that now only contains the lines 5 to 14 of the original one. This parameters needs to be
adapted to your system.
To start the application, you simply need to run
java -jar Code-Critters-x.x.x.jar
Now a server starts and the application is available at localhost on whatever port you
configured in application.properties
.