Go to file
Sugui f293c5e1ea chore: first commit 2024-12-15 13:30:13 +01:00
gradle/wrapper chore: first commit 2024-12-15 13:30:13 +01:00
src/main chore: first commit 2024-12-15 13:30:13 +01:00
.gitignore chore: first commit 2024-12-15 13:30:13 +01:00
README.md chore: first commit 2024-12-15 13:30:13 +01:00
build.gradle chore: first commit 2024-12-15 13:30:13 +01:00
docker-compose.yml chore: first commit 2024-12-15 13:30:13 +01:00
gradlew chore: first commit 2024-12-15 13:30:13 +01:00
gradlew.bat chore: first commit 2024-12-15 13:30:13 +01:00
settings.gradle chore: first commit 2024-12-15 13:30:13 +01:00

README.md

TwochiVerifierBe

This app was created with Bootify.io - tips on working with the code can be found here.

Development

When starting the application docker compose up is called and the app will connect to the contained services. Docker must be available on the current system.

During development it is recommended to use the profile local. In IntelliJ -Dspring.profiles.active=local can be added in the VM options of the Run Configuration after enabling this property in "Modify options". Create your own application-local.yml file to override settings for development.

Lombok must be supported by your IDE. For IntelliJ install the Lombok plugin and enable annotation processing - learn more.

After starting the application it is accessible under localhost:8080.

Build

The application can be built using the following command:

gradlew clean build

Start your application with the following command - here with the profile production:

java -Dspring.profiles.active=production -jar ./build/libs/twochi-verifier-be-0.0.1-SNAPSHOT.jar

If required, a Docker image can be created with the Spring Boot plugin. Add SPRING_PROFILES_ACTIVE=production as environment variable when running the container.

gradlew bootBuildImage --imageName=cat.siesta/twochi-verifier-be

Further readings