We recommend using IntelliJ as IDE for contributing.
We integrate our inspectit-gepard-config model as dependency. We download the dependency from GitHub Packages, which requires authentication. To set up your authentication, follow these steps:
- Create a
gradle.propertiesfile in%userprofile%\.gradle - Create a (classic) personal access token (PAT) with
read:packagespermissions. - Paste the following content into your
gradle.properties:
gpr.inspectit.gepard.user=<YOUR_GITHUB_USERNAME>
gpr.inspectit.gepard.token=<YOUR_GITHUB_ACCESS_TOKEN>
You can find more information here as well: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry
We have spotless configured to format the code. You can run the following commands:
./gradlew spotlessCheckto validate the formatting of the code../gradlew spotlessApplyto format the code.
Be aware that the CI will fail if the code is not formatted correctly, as spotlessCheck is part of the build process.
Please make sure you have the following tools installed on your machine:
- A big cup of coffee
- A Java Development Kit (JDK) with version 21 or higher
- A working internet connection (for downloading dependencies)
- Docker (optional, for running the application in a container)
Thats it for now.
To build the backend, simply run the following command in the root directory of the project:
./gradlew This will generate the backend jar file in the server/build/libs directory.
Tip
You might have installed an auto-formatter in your IDE. It may break the installed spotless code-style. In this case, the build will not be successfull. Please run ./gradlew potlessApply to fix this issue.
To build the frontend, navigate to the frontend/src directory and run the following commands:
npm install
npm run buildThis will generate an entry point that launches a ready-to-run node server in the frontend/src/.output directory.
You could also run the frontend in development mode by running:
npm run dev