This project uses MegaLinter to lint the codebase. To run the linter, use the following command:
make lintThis command will start a Docker container to run the linter against the codebase.
To execute tests, use the command below:
make testGoogle OAuth2 Configuration
- Create an
application-dev.propertiesfile in thesrc/main/resourcesdirectory. - Copy other configurations from
application.properties, then add the following configuration to theapplication-dev.propertiesfile:
spring.security.oauth2.client.registration.google.clientId=your-google-client-id
spring.security.oauth2.client.registration.google.clientSecret=your-google-client-secretTo start the application with the dev profile, run the following command:
make devAlternatively, you can use the following command:
./gradlew bootRun --args='--spring.profiles.active=dev'This will configure your Spring Boot application to use Google OAuth2 for login during development.