This repository aims to provide a starter template for our microservices. It provides the base configuration to integrate with other microservices as Keycloak.
- Configuration of Spring Security to only accept authenticated request on
/api/**
- Authentication of requests with Keycloak
- Listening and publishing of Kafka topics
- CI to build the application
The following environment variables can be configured:
KEYCLOAK_URL
: the URL to the Keycloak instance (default:http://localhost:5000
)KAFKA_URL
: the URL to the Kafka node (default:http://localhost:29092
)POSTGRES_HOST
: the host for the PostgreSQL database (default:localhost:5432/postgres
)POSTGRES_USER
: the user for the PostgreSQL database (default:postgres
)POSTGRES_PASSWORD
: the password for the PostgreSQL database (default:postgres
)
- Delete classes
MyController
KeycloakSecurityConfig
- Delete lines
- Keycloak related lines in
application.properties
- Keycloak related lines in
build.gradle
- Keycloak related lines in
- Delete classes
KafkaConfig
PingPongListener
- Delete lines
- Kafka related lines in
application.properties
in bothmain
andtest
source-sets - Kafka related lines in
build.gradle
- Kafka related lines in
- Delete classes
Movie
MoviesRepositories
- Delete lines
- Postgres related in
application.properties
in bothmain
andtest
source-sets - Postgres related in
build.gradle
- Postgres related in
- Delete classes
RedisController
- Delete lines
- Redis related in
build.gradle
- Redis related in