Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.15 KB

DEVELOPMENT.md

File metadata and controls

60 lines (44 loc) · 2.15 KB

Development Setup

Application Architecture

Architecture

Keycloak

For local development start a keycloak container by following the steps below:

  1. From the project root execute:
docker compose up keycloak -d
  1. Open http://localhost:8081 and sign in with admin credentials
    • Username: admin
    • Password: admin
  2. Click on the drowdown in the top left and go to Create realm
  3. Import the keycloak-realm-config-example-json or create a new realm thesis-track manually.
  4. Select the newly created realm and create your user in Users (username, email, first name, last name)
  5. Go to "Credentials" for the new user and set a non temporary password
  6. Go to "Role mapping" and assign the client roles admin, supervisor, advisor to the new user
    • Select "Filter by clients" and search for "thesis-track-app" to find the roles

PostgreSQL Database

For local development start a database container by executing the following command from the project root:

docker compose up db -d

Postfix

Notice: local development does not support mailing functionality. The mails are printed in the console when no postfix instance is configured.

Server

Preconditions

To start the sever application for local development, navigate to /server folder and execute the following command from the terminal:

./gradlew bootRun

Server is served at http://localhost:8080.

Client

Preconditions

To start the client application for local development, navigate to /client folder and execute the following command from the terminal:

npm install
npm run dev

Client is served at http://localhost:3000.