- Java 11 or higher
- Maven 3.3 or higher
- Docker (optional)
- to run the app with embeded H2DB just put these properties to 'application.properties' file in app's resources folder:
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.username=sa
spring.datasource.password=
- run next commands in the console:
mvn clean package
mvn spring-boot:run
How to build and to run with Docker:
- build app with Maven as described in steps above
- build Docker image
docker build -t defpub-rest-service .
docker run -p 8080:8080 defpub-rest-service