Dev Service is a handy service to let HIP/HIU bridge developers work autonomously by providing features such as manipulate bridge services entries, etc.
- Git (also setup SSH Key)
- Intelli Idea IDE
- Install Lombok Plugin in the IDE and enable Lombok Annotations in preferences
## :whale: Running From The Docker Image
Create docker image
```alpha
docker build -t dev-service .
To run the image
docker run -d -p 9090:9090 dev-service
To run
./gradlew bootRunLocal
To run the tests
./gradlew test
Assuming gateway is up and running as well as Keycloak is running on your local,
To be able to manipulate hip/hiu services entries & update bridge endpoint, you need to add admin role to gateway client and create admin-user in Central-Registry
realm.
- Click on
Clients
- Go to the
gateway
client - Click on
Roles
tab - Click on
Add Role
- Enter Role Name as
admin
- Click
Save
- Click on
Users
- Click on
Add user
- Enter Username as
admin-user
- Click
Save
- Click on
Credentials
tab - Set Temporary check to
OFF
- Enter Password and Password Confirmation as
welcome
- Click on
Set Password
- Click on
Role Mappings
tab - Click on
Client Roles - Select a client
search box - Type
gateway
and click enter - On the
Available Roles
you should seeadmin
role, select that to assign, and then clickAdd Selected
- Type
realm-management
and click enter - On the
Available Roles
you should seemanage-clients
andmanage-users
roles, select those to assign, and then clickAdd Selected