This app was created with Bootify.io - tips on working with the code can be found here. Feel free to contact us for further questions.
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".
Update your local database connection in application.properties
or create your own application-local.properties
file to override settings for development.
Lombok must be supported by your IDE. For this, in IntelliJ install the Lombok plugin and enable annotation processing - learn more.
After starting the application it is accessible under localhost:8080
.
The application can be built using the following command:
gradlew clean build
The application can then be started with the following command - here with the profile production
:
java -Dspring.profiles.active=production -jar ./build/libs/homebook-app-0.0.1-SNAPSHOT.jar