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.

Node.js Installation

Add the environment variables in Path to C:\Program Files\nodejs\

image

Downgrade to the correct npm version: npm install -g [email protected]

IntelliJ Local Environment Configuration

First under Run click on Edit Configurations:

image

Create a new application with the name Kobit-APIGateway:

create_application

Add the path to your JAVA JRE 11:

java_jre

Then fill with JAVA main class as followsde.muenchen.kobit.ApiGatewayApplication

image

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

image

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

Finally add the following environment variables:

For SSO:

BACKEND_URI_PREDICATE=/api/kobit-backend-service/**;

BACKEND_URI_REWRITE_PATH=/api/kobit-backend-service/(?<urlsegments>.*), /$\{urlsegments};

CLIENT_ID=YOUR_SSO_CLIENT_ID;

KEYCLOAK_URI=YOUR_KEYCLOAK_URI;

KEY_URI=YOUR_SSO_KEY_URI;

SSO_URI=YOUR_SSO_URI;

REALM=YOUR_REALM;

For Database:

DATABASE_ADDRESS=YOUR_DATABASE_ADDRESS;

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;

Frontend Vue.js Kickstarter-GUI

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration : See Configuration Reference.