-
Notifications
You must be signed in to change notification settings - Fork 2
(EN) Installation
Set the environment variables for MAVEN_HOME
to C:\Program Files\apache-maven-3.8.1
Go into the root part of the project and install the dependencies via mvn install
.
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
First under Run click on Edit Configurations:
Create a new application with the name Kobit-Backend:
Add the path to your JAVA JRE 11:
Then fill with JAVA main class de.muenchen.kobit.backend.MicroServiceApplication
:
Add the Spring profile -Dspring.profiles.active=local
with Modify Options and Add VM options:
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
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/