Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.92 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.92 KB

Caipora

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

Development

Update your local database connection in application.properties or create your own application-local.properties file to override settings for development.

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".

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

Testing requirements

To run the tests and build, Docker must be available on the current system. Due to the reuse flag, the container will not shut down after the tests. It can be stopped manually if needed.

Build

The application can be tested and built using the following command:

mvnw clean package

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

java -Dspring.profiles.active=production -jar ./target/Caipora-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.

mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=br.dev.ampliar/caipora

Further readings