jacopocarlini / template-java-spring-microservice

Template created by pagoPa Tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template for Java Spring Microservice project

Quality Gate Status

TODO: add a description

TODO: generate a index with this tool: https://ecotrust-canada.github.io/markdown-toc/

TODO: resolve all the TODOs in this template


Api Documentation πŸ“–

See the [OpenApi 3 here.](TODO: set your url)


Technology Stack

  • Java 11
  • Spring Boot
  • Spring Web
  • Hibernate
  • JPA
  • ...
  • TODO

Start Project Locally πŸš€

Prerequisites

  • docker

Run docker container

from ./docker directory

sh ./run_docker.sh dev

ℹ️ Note: for PagoPa ACR is required the login az acr login -n <acr-name>


Develop Locally πŸ’»

Prerequisites

  • git
  • maven
  • jdk-11

Run the project

Start the springboot application with this command:

mvn spring-boot:run -Dspring-boot.run.profiles=local

Spring Profiles

  • local: to develop locally.
  • default (no profile set): The application gets the properties from the environment (for Azure).

Testing πŸ§ͺ

Unit testing

To run the Junit tests:

mvn clean verify

Integration testing

From ./integration-test/src

  1. yarn install
  2. yarn test

Performance testing

install k6 and then from ./performance-test/src

  1. k6 run --env VARS=local.environment.json --env TEST_TYPE=./test-types/load.json main_scenario.js

Contributors πŸ‘₯

Made with ❀️ by PagoPa S.p.A.

Mainteiners

See CODEOWNERS file

About

Template created by pagoPa Tech


Languages

Language:Java 75.0%Language:Shell 12.4%Language:JavaScript 10.0%Language:Dockerfile 1.9%Language:Gherkin 0.6%