mfvanek / salary-calc

Demo app for salary calculation (Spring Boot)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

salary-calc

Demo app for salary calculation (Spring Boot)

Java CI

Total lines Files

Bugs Vulnerabilities Code Smells Lines of Code Coverage

Requirements

Java 17+
Spring Boot 3.0+

API

Actuator

Swagger UI Health

Endpoints

curl http://localhost:8080/api/employee/dcffa631-595a-44e6-8f8c-1c077de895bf
curl -i -X POST -d "{\"firstName\": \"John\",\"lastName\": \"Wick\",\"standardHoursPerDay\": 8,\"salaryPerHour\": 5000}" http://localhost:8080/api/employee -H "Content-Type: application/json"
curl http://localhost:8080/api/employee/all

Run locally

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

Run in Docker

Build image

mvn clean spring-boot:build-image -DskipTests -DskipSpotbugs=true

Build native image

Unfortunately, built application doesn't start in container

mvn clean spring-boot:build-image -DskipTests -DskipSpotbugs=true -Pnative

Docker Compose

Start

docker-compose --project-name="salary-calc" up -d

Stop

docker-compose --project-name="salary-calc" down

About

Demo app for salary calculation (Spring Boot)

License:Apache License 2.0


Languages

Language:Java 100.0%