Cloudcase Pay Calculator service
docker pull postgres
Run postgreSQL
docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres
Connect to the database via docker to create both the user and the databases
docker run -it --rm --link postgres:postgres postgres psql -h postgres -U postgres
CREATE DATABASE paycaldb;
./gradlew bootRun
./gradlew test
POST http://localhost:8080/taxcalculator
{
"salaryAmount" : "130000",
"taxYear": "2023"
}