Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Building from source

Lucca Greschner edited this page Feb 3, 2023 · 3 revisions

Dependencies

Build Dependencies

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

Runtime Dependencies

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.

The building process

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.

Clone this wiki locally