https://github.com/squidmin/jm0524
Spring Boot CLI application that interacts with a PostgreSQL database
https://github.com/squidmin/jm0524
cli cli-application docker docker-compose flyway flyway-postgresql h2 hibernate hibernate-jpa java java17 java17-spring-boot junit junit5 mockito postgresql spring-boot spring-boot-3 spring-jpa
Last synced: about 2 months ago
JSON representation
Spring Boot CLI application that interacts with a PostgreSQL database
- Host: GitHub
- URL: https://github.com/squidmin/jm0524
- Owner: squidmin
- Created: 2024-05-17T20:03:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T00:03:09.000Z (12 months ago)
- Last Synced: 2025-02-07T13:54:35.442Z (3 months ago)
- Topics: cli, cli-application, docker, docker-compose, flyway, flyway-postgresql, h2, hibernate, hibernate-jpa, java, java17, java17-spring-boot, junit, junit5, mockito, postgresql, spring-boot, spring-boot-3, spring-jpa
- Language: Java
- Homepage:
- Size: 7.82 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
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
```bash
./gradlew cleanTest test -DAPP_PROFILE=test
```
## View Test Coverage Report

### macOS
```bash
open build/reports/jacoco/test/html/index.html
```### Windows
```bash
start build\reports\jacoco\test\html\index.html
```### Linux
```bash
xdg-open build/reports/jacoco/test/html/index.html
```## Build and run the containers
```bash
docker-compose run --rm -it app ./gradlew bootRun -DAPP_PROFILE=local
```
## Stop and remove all containers
```bash
docker-compose down
```
## Remove existing containers, volumes, and images
```bash
docker-compose down -v --rmi all
```