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
MyControllerKeycloakSecurityConfig
- Delete lines
- Keycloak related lines in
application.properties - Keycloak related lines in
build.gradle
- Keycloak related lines in
- Delete classes
KafkaConfigPingPongListener
- Delete lines
- Kafka related lines in
application.propertiesin bothmainandtestsource-sets - Kafka related lines in
build.gradle
- Kafka related lines in
- Delete classes
MovieMoviesRepositories
- Delete lines
- Postgres related in
application.propertiesin bothmainandtestsource-sets - Postgres related in
build.gradle
- Postgres related in
- Delete classes
RedisController
- Delete lines
- Redis related in
build.gradle
- Redis related in