Byndyusoft / java-spring-microservice-template

Seed repo for all new services

Home Page:https://github.com/Byndyusoft/java-spring-microservice-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Microservice template

Summary

Seed repo for all new services

Technology stack

  • Java 17
  • Spring Boot 2.7.5
  • Spring Cloud 2021.0.5
  • Maven 3.6.3

OpenAPI Specification

Please add OpenAPI specification if exists. Currently automatic generation.

Database schema

Generated database schema can be found here.

Configuration properties

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

Database configuration

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/postgres
  • DB_USERNAME postgres
  • DB_PASSWORD postgres

Database migrations rollout

The application uses Liquibase for applying DB migrations which happens during the startup.

Running locally

To run it locally:

Run docker container with postgres image (also specify credential to connect in configuration)

How to run tests

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.

Maintainers

License

This repository is released under version 2.0 of the Apache License.

About

Seed repo for all new services

https://github.com/Byndyusoft/java-spring-microservice-template

License:Apache License 2.0


Languages

Language:Java 100.0%