Skip to content

(EN) Installation

Thomas Fink edited this page May 22, 2023 · 1 revision

Maven Installation

Set the environment variables for MAVEN_HOME to C:\Program Files\apache-maven-3.8.1

image

Go into the root part of the project and install the dependencies via mvn install.

Java JDK Installation

Java Version JDK 11.0.10 can be downloaded from the Oracle website https://jdk.java.net/java-se-ri/11

Then set the environment variables for JAVA_HOME to C:\Program Files\Java\jdk-11

image

IntelliJ Local Environment Configuration

First under Run click on Edit Configurations:

image

Create a new application with the name Kobit-Backend:

create_application

Add the path to your JAVA JRE 11:

java_jre

Then fill with JAVA main class de.muenchen.kobit.backend.MicroServiceApplication :

fill_application

Add the Spring profile -Dspring.profiles.active=local with Modify Options and Add VM options:

image

Set the working directory to the entire backend: C:\user\your_username\projects\kobit\kobit-backend

Finally add the following environment variables:

For SSO:

CLIENT_ID=YOUR_SSO_CLIENT_ID;

KEY_URI=YOUR_SSO_KEY_URI;

For Database:

DATABASE_ADDRESS=YOUR_DATABASE_ADDRESS;

DATABASE_PASSWORD=YOUR_DATABASE_PASSWORD;

DATABASE_USERNAME=YOUR_DATABASE_USERNAME;

For AWS S3 Bucket:

AWS_S3_BUCKET_NAME=YOUR_AWS_S3_BUCKET_NAME;

AWS_S3_ACCESS_KEY=YOUR_AWS_S3_ACCESS_KEY;

AWS_S3_SECRET_KEY=YOUR_AWS_S3_SECRET_KEY;

AWS_S3_HOSTNAME=YOUR_AWS_S3_HOSTNAME;

For E-Mail:

NO_REPLY_MAIL=YOUR_NO_REPLY_EMAIL;

SMTP_HOST=udn;

SMTP_PORT=25;

USER_URI=YOUR_USER_URI

Backend SpringBoot Kickstarter

To start in the local environment, in the IDE change the configuration at VM-Options:

-Dspring.profiles.active=local,no-security

or with the following command:

mvn clean spring-boot:run -``Dspring-boot.run``.jvmArguments="-Dspring.profiles.active=local,no-security"

Open with: http://localhost:39146/

Swagger: http://localhost:8080/swagger-ui.html