Seed repo for all new services
- Java 17
- Spring Boot 2.7.5
- Spring Cloud 2021.0.5
- Maven 3.6.3
Please add OpenAPI specification if exists. Currently automatic generation.
Generated database schema can be found here.
The application uses Spring Boot as the main framework so all the properties from the application.yml and other (profile-specific) configs could be overridden using the relaxed binding feature.
Some properties also have aliases for the convenience (e.g. ${PORT}
for server.port
).
Microservice uses PostgreSQL as a main database. You should provide an running instance before start of application and fill environment variables:
DB_URL
jdbc:postgresql://localhost:5432/postgresDB_USERNAME
postgresDB_PASSWORD
postgres
The application uses Liquibase for applying DB migrations which happens during the startup.
To run it locally:
Run docker container with postgres image (also specify credential to connect in configuration)
This project has JUnit tests. To run them execute this command from maven plugin or terminal:
mvn test
To run integration tests, you need to start docker locally.
This repository is released under version 2.0 of the Apache License.