Setup
Requirements
Before setting up enterprise-knowledge-platform
application, following packages need to be installed:
- Docker(version 25.0.3).
- Docker compose(version 1.29.2).
- JDK 17.
Setup
For running the application we need to start docker-compose.yml file where Postgres SQL and Keycloak services are defined. Perform steps described below to be able to run application and make request to it.
- Create folders for volumes devices with paths same as in docker-compose.yml file.
- Run docker-compose start.
- Open the
Keycloak
in the browser on the localhost.(Port is written in projects application.yml) - Select the application realm.(Top left select box)
- In the
Users
tab create user. - Go to the
Credentials
tab and pressReset password
. - Set any password for your user, turn off the
Tepmorary
flag and pressSave
. - Start the application.(During the start all available roles are saved in your local Keycloak db).
- Go to the
Role mapping
tab for the selected user and assign needed roles to the user.(For each endpoint besides login endpoint there is a specific role)
After performing steps above, you'll be able to sign in with the user described in steps 6 and 7, and make requests to the endpoints to which your user has roles.