ivangfr / springboot-react-keycloak

The goal of this project is to secure movies-app using Keycloak (with PKCE). movies-app consists of two applications: one is a Spring Boot Rest API called movies-api and another is a React application called movies-ui.
398 stars 156 forks source link

add server port to spring configuration #18

Closed albertoSoto closed 10 months ago

albertoSoto commented 10 months ago

First of all, thanks, super nice approach.

I realized you are missing the following for the local dev environment, so it does not collide spring boot port with kc

Under application.yml for spring services you could add the following, to launch the react dashboard directly

server: port: 9080

ivangfr commented 10 months ago

Hi @albertoSoto thanks for the message.

In fact, I am setting the port at runtime as described in the README by starting the app using Maven with the following command, where I inform the port:

./mvnw clean spring-boot:run -Dspring-boot.run.jvmArguments="-Dserver.port=9080"

Best regards,