-
Notifications
You must be signed in to change notification settings - Fork 0
Building from source
For building this project you need to have java 17 or newer installed. Depending on your operating system, steps may vary. Therefore, the below installation instructions might not apply.
Debian:
$ sudo apt update && sudo apt install -y openjdk-17-jre
Other debian-based distributions may be similar, but that's untested.
Fedora:
$ sudo dnf install -y java-17
For using the application a running instance of MongoDB is needed. For installation instructions regarding MongoDB, see: MongoDB Documentation.
You'll also need a OpenID Connect authentication provider with a public client. We only tested the authentication feature using Keycloak. However, it should also work with other OpenID Connect authentication provider, though there is a caveat: Roles of users are mapped by an internal converter. This converter is specifically made for the way Keycloak manages roles inside its JWTs. This means, that there probably won't be any support for administrative privileges when using a different authentication provider.
Information about how to setup Keycloak can be found here: Keycloak Documentation. Information about setting up Keycloak with the Meal-Tiger-Backend can be found in the respective page of this wiki.
After cloning the repository you may run the following command within the project's folder:
mvn package -DskipTests
After the process of building, you should find the built jar-file in the folder target.