Skip to content

Spring Boot CLI application that interacts with a PostgreSQL database

Notifications You must be signed in to change notification settings

squidmin/jm0524

Repository files navigation

jm0524

Simulation of a Tool Rental Checkout System CLI. Uses Spring Data JPA to interact with a PostgreSQL database.

Prerequisites

Ensure you have Docker installed.

Clone the repository

git clone https://github.com/squidmin/jm0524.git
cd /Users/username/path/to/jm0524

Replace the above path with the actual location of your clone of the project.

Run tests

./gradlew cleanTest test -DAPP_PROFILE=test

Run the tests

View Test Coverage Report

View test coverage report

macOS

open build/reports/jacoco/test/html/index.html

Windows

start build\reports\jacoco\test\html\index.html

Linux

xdg-open build/reports/jacoco/test/html/index.html

Build and run the containers

docker-compose run --rm -it app ./gradlew bootRun -DAPP_PROFILE=local

Build and run the containers

Stop and remove all containers

docker-compose down

Stop and remove all containers

Remove existing containers, volumes, and images

docker-compose down -v --rmi all

Remove existing containers, volumes, and images